more tests

This commit is contained in:
christos 2002-11-13 21:53:13 +00:00
parent 67dc335c98
commit d821a394a8
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,8 @@
/* C99 union initialization */
union {
int i[10];
short s;
} c[] = {
{ s: 2 },
{ i: { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } },
};

View File

@ -0,0 +1,8 @@
/* C99 union initialization */
struct {
int i[10];
char *s;
} c[] = {
{ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 },
"foo" },
};