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