2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compat / struct-ret-1.c
bloba585c8fdb40091d2324d9150f401f0dd9e41a3f3
1 typedef struct { int re; int im; } T;
3 T f (int, int);
5 #if COMPILER != 1
7 f (int arg1, int arg2)
9 T x;
10 x.re = arg1;
11 x.im = arg2;
12 return x;
14 #endif
16 #if COMPILER != 2
17 main ()
19 T result;
20 result = f (3, 4);
21 if (result.re != 3 || result.im != 4)
22 abort ();
23 exit (0);
25 #endif