Reverting merge from trunk
[official-gcc.git] / gcc / testsuite / g++.dg / other / PR23205.C
blobe55710b40f0a0a69528ca4e27facff742ff2e4ad
1 /* { dg-do compile } */
2 /* { dg-skip-if "No stabs" { aarch64*-*-* mmix-*-* *-*-aix* alpha*-*-* hppa*64*-*-* ia64-*-* tile*-*-* *-*-vxworks } { "*" } { "" } } */
3 /* { dg-options "-gstabs+ -fno-eliminate-unused-debug-types" } */
5 const int foobar = 4;
6 int foo ()
8         return foobar + 1;
11 int main()
13         int i;
14         i = foo();
15         return i;
18 /* { dg-final { scan-assembler ".stabs.*foobar:(c=i|S)" } } */