Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.c-torture / execute / zerolen-1.c
blob632ad4bc09e85dac06031d93be0d706039074de9
1 extern void abort (void);
2 extern void exit (int);
4 union iso_directory_record {
5 char carr[4];
6 struct {
7 unsigned char name_len [1];
8 char name [0];
9 } u;
10 } entry;
12 void set(union iso_directory_record *);
14 int main (void)
16 union iso_directory_record *de;
18 de = &entry;
19 set(de);
21 if (de->u.name_len[0] == 1 && de->u.name[0] == 0)
22 exit (0);
23 else
24 abort ();
27 void set (union iso_directory_record *p)
29 p->carr[0] = 1;
30 p->carr[1] = 0;
31 return;