Skip to content

Commit

Permalink
Added new test
Browse files Browse the repository at this point in the history
  • Loading branch information
zik.saleeba committed Sep 6, 2012
1 parent 130334c commit 32f3578
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/55_array_initialiser.c
Original file line number Diff line number Diff line change
@@ -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 changes: 2 additions & 0 deletions tests/55_array_initialiser.expect
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
12 34 56
23.400000 56.700000 89.000000

0 comments on commit 32f3578

Please sign in to comment.