1 /* Test dead code strip support. */
2 /* Contributed by Devang Patel <dpatel@apple.com> */
4 /* { dg-do compile { target *-*-darwin* } } */
6 const char my_version_string
[] __attribute__((__used__
))
7 = "Do not remove this string\n";
10 __attribute__((__used__
))
11 static_debug_routine()
23 /* { dg-final { scan-assembler ".no_dead_strip _my_version_string" } } */
24 /* { dg-final { scan-assembler ".no_dead_strip _static_debug_routine" } } */