Commit 4c8fb571 by Franz Sirl Committed by Franz Sirl

20001115-1.c: New test.

	2000-11-15  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

	* gcc.c-torture/execute/20001115-1.c: New test.

From-SVN: r37497
parent 35ef21d2
2000-11-15 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* gcc.c-torture/execute/20001115-1.c: New test.
2000-11-15 Mark Mitchell <mark@codesourcery.com> 2000-11-15 Mark Mitchell <mark@codesourcery.com>
* g++.old-deja/g++.abi/arraynew.C: Use `std' where necessary. * g++.old-deja/g++.abi/arraynew.C: Use `std' where necessary.
......
extern void abort (void);
extern void exit (int);
struct iso_directory_record {
unsigned char name_len [1];
char name [0];
} entry;
void set(struct iso_directory_record *);
int main (void)
{
struct iso_directory_record *de;
de = &entry;
set(de);
if (de->name_len[0] == 1 && de->name[0] == 0)
exit (0);
else
abort ();
}
void set (struct iso_directory_record *p)
{
p->name_len[0] = 1;
return;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment