more tests
This commit is contained in:
parent
67dc335c98
commit
d821a394a8
8
regress/usr.bin/xlint/lint1/test12.c
Normal file
8
regress/usr.bin/xlint/lint1/test12.c
Normal 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 } },
|
||||
};
|
8
regress/usr.bin/xlint/lint1/test13.c
Normal file
8
regress/usr.bin/xlint/lint1/test13.c
Normal 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" },
|
||||
};
|
Loading…
Reference in New Issue
Block a user