1 /* Test dead code strip support.  */
2 /* Contributed by Devang Patel  <dpatel@apple.com>  */
3 
4 /* { dg-do compile { target *-*-darwin* } } */
5 
6 const char my_version_string[] __attribute__((__used__))
7   = "Do not remove this string\n";
8 
9  static int
10  __attribute__((__used__))
static_debug_routine()11       static_debug_routine()
12 {
13    int i;
14    i = 42;
15 }
16 
17 int
main()18 main ()
19 {
20    return 0;
21 }
22 
23 /* { dg-final { scan-assembler ".no_dead_strip _my_version_string" } } */
24 /* { dg-final { scan-assembler ".no_dead_strip _static_debug_routine" } } */
25