xref: /netbsd-src/external/gpl3/gdb/dist/libctf/testsuite/libctf-regression/nonstatic-var-section-ld-r-ctf.c (revision 3117ece4fc4a4ca4489ba793710b60b0d26bab6c)
1 static int foo __attribute__((__used__));
2 int bar;
3 
4 /* This is sometimes linked as a main program, sometimes via ld -r, and
5    sometimes via ld -shared.  */
6 int main (void)
7 {
8   return 0;
9 }
10