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" } */
10 inline __attribute__((always_inline
)) int
11 should_not_appear1 (void)
15 return should_not_appear1 ();
22 inline __attribute__((always_inline
)) int
23 should_not_appear2 (void)
30 extern void check (void *p
);
39 char *p
= __builtin_alloca (i
);
43 return should_appear1 ();
51 should_not_appear3 (void)
53 char *p
= __builtin_alloca (i
);
57 return 0 ? should_not_appear3 () : 1;
69 check (should_appear2
);
73 /* { dg-final { scan-assembler-not "should_not_appear" } } */