xref: /netbsd-src/external/gpl3/gdb/dist/libctf/testsuite/libctf-regression/nonstatic-var-section-ld-r-ctf.c (revision 8e33eff89e26cf71871ead62f0d5063e1313c33a)
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