* gcc.dg/stack-check-5.c: Skip with -fstack-protector.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr65521.c
blob49d6a4c837770ec8896ab8436405ecf5a5490fc6
1 /* PR ipa/65521 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fcompare-debug" } */
4 /* { dg-xfail-if "" { powerpc-ibm-aix* } } */
6 struct S { int s; };
7 int f6 (void *, unsigned long);
8 int f7 (int, int *, unsigned long);
9 int f8 (void);
10 int f9 (void (*) (void));
12 int
13 f1 (void *p)
15 return f6 (p, 256UL);
18 int
19 f2 (void *p)
21 return f6 (p, 256UL);
24 int
25 f3 (struct S *x)
27 return f7 (f8 (), &x->s, 16UL);
30 int
31 f4 (struct S *x)
33 return f7 (f8 (), &x->s, 16UL);
36 void
37 f5 (void)
39 f9 (f5);