Handle symbol visibility/locality for PIE/PIC
[official-gcc.git] / gcc / testsuite / c-c++-common / pr42674.c
blobae6730c50b0ca2d86867212c8e75d224f45793cf
1 /* PR middle-end/42674 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wreturn-type" } */
5 extern void bar (void);
6 static int foo (void) __attribute__ ((__noreturn__, __used__));
8 static int
9 foo (void)
11 while (1)
12 bar ();