[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gcc.dg / pr32338-2.c
blob81daddf6a67af0f3fc36528935585562f4ec18b9
1 /* PR target/32338 */
2 /* { dg-do link } */
3 /* { dg-options "-O2 -fno-omit-frame-pointer" } */
5 struct S
7 };
9 int
10 __attribute__((noinline))
11 foo (void)
13 return 2;
16 int
17 __attribute__((noinline))
18 bar (void)
20 return 4;
23 int
24 __attribute__((noinline))
25 fnl (void)
27 return 6;
30 int
31 __attribute__((noinline))
32 baz (void)
34 unsigned int len;
35 len = fnl ();
36 if (len > 512)
37 return bar ();
38 return foo ();
41 int
42 main (int argc, char *argv[])
44 if (argc > 30)
45 return baz ();
46 return 0;