8sa1-gcc/gcc/testsuite/gcc.c-torture/execute/921117-1.c

23 lines
263 B
C
Raw Normal View History

1997-08-19 03:34:40 -04:00
struct s {
char text[11];
int flag;
} cell;
int
check (struct s p)
{
if (p.flag != 99)
return 1;
return strcmp (p.text, "0123456789");
}
main ()
{
cell.flag = 99;
strcpy (cell.text, "0123456789");
if (check (cell))
abort();
exit (0);
}