OSDN Git Service

Merge lto branch into trunk.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.c-torture / execute / 20030914-2.c
1 /* On IRIX 6, PA is passed partially in registers and partially on the
2    stack.  We therefore have two potential uses of pretend_args_size:
3    one for the partial argument and one for the varargs save area.
4    Make sure that these uses don't conflict.  */
5
6 struct s { int i[18]; };
7
8 int f (struct s pa, int pb, ...)
9 {
10   return pb;
11 }
12
13 struct s gs;
14
15 int main ()
16 {
17   if (f (gs, 0x1234) != 0x1234)
18     abort ();
19
20   exit (0);
21 }