OSDN Git Service

* treelang/compile/var_defs.tree: Adjust.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / addrof1.C
1 // { dg-do run  }
2
3 extern "C" void abort ();
4
5 typedef struct st {
6         unsigned char   a;
7         unsigned char   b;
8         unsigned char   c;
9         unsigned char   d;
10 } __attribute__((aligned(4))) st;
11
12 void testme(int, int, int);
13
14 static inline void
15 stupid_func(st s)
16 {
17         testme(s.a, s.b, s.c);
18 }
19
20 int main()
21 {
22         st s;
23
24         s.a = s.b = s.c = 216;
25         stupid_func(s);
26
27         return 0;
28 }    
29
30 void testme(int a, int b, int c)
31 {
32   if (a != 216 || b != 216 || c != 216)
33     abort();
34 }