Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.c-torture / compat / struct-i.c
blob25cbee6071e76f1bb912c14e6bdfaefda86cb517
1 typedef struct {int a;} T;
3 int h (T *);
4 T g (T);
6 #if COMPILER != 1
7 h (T *x)
9 if (x->a != 47114711)
10 abort ();
12 #endif
14 #if COMPILER != 2
16 g (T x)
18 if (x.a != 13)
19 abort ();
20 x.a = 47114711;
21 h (&x);
22 return x;
24 #endif
26 #if COMPILER != 1
27 f ()
29 T x;
30 x.a = 13;
31 g (x);
32 if (x.a != 13)
33 abort ();
34 x = g (x);
35 if (x.a != 47114711)
36 abort ();
38 #endif
40 #if COMPILER != 2
41 main ()
43 f ();
44 exit (0);
46 #endif