1 /* PR middle-end/15345, c/16450 */
2 /* Test whether unused nested functions aren't emitted into the assembly. */
3 /* { dg-do compile } */
4 /* { dg-options "-g0" } */
5 /* { dg-require-effective-target trampolines } */
11 inline __attribute__((always_inline
)) int
12 should_not_appear1 (void)
16 return should_not_appear1 ();
23 inline __attribute__((always_inline
)) int
24 should_not_appear2 (void)
31 extern void check (void *p
);
40 char *p
= __builtin_alloca (i
);
44 return should_appear1 ();
52 should_not_appear3 (void)
54 char *p
= __builtin_alloca (i
);
58 return 0 ? should_not_appear3 () : 1;
70 check (should_appear2
);
74 /* { dg-final { scan-assembler-not "should_not_appear" } } */