2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20001228-1.c
blob9c93e79f571ff808b7a50c3d83730a5dd57a543b
1 int foo1(void)
3 union {
4 char a[sizeof (unsigned)];
5 unsigned b;
6 } u;
8 u.b = 0x01;
9 return u.a[0];
12 int foo2(void)
14 volatile union {
15 char a[sizeof (unsigned)];
16 unsigned b;
17 } u;
19 u.b = 0x01;
20 return u.a[0];
23 int main(void)
25 if (foo1() != foo2())
26 abort ();
27 exit (0);