Added new test
git-svn-id: http://picoc.googlecode.com/svn/trunk@580 21eae674-98b7-11dd-bd71-f92a316d2d60
This commit is contained in:
parent
29d15395ba
commit
3dde83d48d
12
tests/55_array_initialiser.c
Normal file
12
tests/55_array_initialiser.c
Normal file
|
@ -0,0 +1,12 @@
|
|||
#include <stdio.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
int fred[3] = { 12, 34, 56 };
|
||||
double joe[] = { 23.4, 56.7, 89.0 };
|
||||
|
||||
printf("%d %d %d\n", fred[0], fred[1], fred[2]);
|
||||
printf("%f %f %f\n", joe[0], joe[1], joe[2]);
|
||||
|
||||
return 0;
|
||||
}
|
2
tests/55_array_initialiser.expect
Normal file
2
tests/55_array_initialiser.expect
Normal file
|
@ -0,0 +1,2 @@
|
|||
12 34 56
|
||||
23.400000 56.700000 89.000000
|
Loading…
Reference in a new issue