diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/other/PR23205.C')
-rw-r--r-- | gcc/testsuite/g++.dg/other/PR23205.C | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/other/PR23205.C b/gcc/testsuite/g++.dg/other/PR23205.C new file mode 100644 index 000000000..273535444 --- /dev/null +++ b/gcc/testsuite/g++.dg/other/PR23205.C @@ -0,0 +1,18 @@ +/* { dg-do compile } */ +/* { dg-skip-if "No stabs" { mmix-*-* *-*-aix* *-*-netware* alpha*-*-* hppa*64*-*-* ia64-*-* *-*-vxworks } { "*" } { "" } } */ +/* { dg-options "-gstabs+ -fno-eliminate-unused-debug-types" } */ + +const int foobar = 4; +int foo () +{ + return foobar + 1; +} + +int main() +{ + int i; + i = foo(); + return i; +} + +/* { dg-final { scan-assembler ".stabs.*foobar:(c=i|S)" } } */ |