1 /* { dg-do compile { target stabs } } */ 2 /* { dg-options "-gstabs+ -fno-eliminate-unused-debug-types -ftoplevel-reorder" } */ 3 4 const int foobar = 4; foo()5int foo () 6 { 7 return foobar + 1; 8 } 9 main()10int main() 11 { 12 int i; 13 i = foo(); 14 return i; 15 } 16 17 /* { dg-final { scan-assembler ".stabs.*foobar:c=i" } } */ 18