PR tree-optimization/81384 - built-in form of strnlen missing
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20080222-1.c
blob6db83ccdf9028a7f10bfce67af6c7632d087407b
1 extern void abort (void);
3 struct container
5 unsigned char data[1];
6 };
8 unsigned char space[6] = {1, 2, 3, 4, 5, 6};
10 int
11 foo (struct container *p)
13 return p->data[4];
16 int
17 main ()
19 if (foo ((struct container *) space) != 5)
20 abort ();
21 return 0;