Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/20030914-2.c

raw
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 void abort (void);
7 void exit (int);
8
9 struct s { int i[18]; };
10
11 int f (struct s pa, int pb, ...)
12 {
13 return pb;
14 }
15
16 struct s gs;
17
18 int main ()
19 {
20 if (f (gs, 0x1234) != 0x1234)
21 abort ();
22
23 exit (0);
24 }