FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / addrof1.C
blobfda09923b76a6ea310b209a832cd1c0dcbb17449
2 extern "C" void abort ();
4 typedef struct st {
5         unsigned char   a;
6         unsigned char   b;
7         unsigned char   c;
8         unsigned char   d;
9 } __attribute__((aligned(4))) st;
11 void testme(int, int, int);
13 static inline void
14 stupid_func(st s)
16         testme(s.a, s.b, s.c);
19 int main()
21         st s;
23         s.a = s.b = s.c = 216;
24         stupid_func(s);
26         return 0;
27 }    
29 void testme(int a, int b, int c)
31   if (a != 216 || b != 216 || c != 216)
32     abort();