blob: 608108ad9a0d0d1290105260a4d6a05a2b1566df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/* { dg-do compile } */
/* { dg-skip-if "No stabs" { mmix-*-* *-*-aix* *-*-netware* alpha*-*-* hppa*64*-*-* ia64-*-* } { "*" } { "" } } */
/* { dg-options "-gstabs+ -fno-eliminate-unused-debug-types -ftoplevel-reorder" } */
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" } } */
|