Commit 63240f95 by Jakub Jelinek Committed by Jakub Jelinek

re PR debug/36668 (FAIL: g++.dg/other/PR23205.C scan-assembler .stabs.*foobar:c=i)

	PR debug/36668
	* g++.dg/other/PR23205.C: Allow foobar to be defined as variable.
	* g++.dg/other/pr23205-2.C: New test.

From-SVN: r141453
parent 77253e56
2008-10-30 Jakub Jelinek <jakub@redhat.com>
PR debug/36668
* g++.dg/other/PR23205.C: Allow foobar to be defined as variable.
* g++.dg/other/pr23205-2.C: New test.
2008-10-29 David Edelsohn <edelsohn@gnu.org>
* gcc.c-torture/compile/pr37878.c: New test.
......
......@@ -15,4 +15,4 @@ int main()
return i;
}
/* { dg-final { scan-assembler ".stabs.*foobar:c=i" } } */
/* { dg-final { scan-assembler ".stabs.*foobar:(c=i|S)" } } */
/* { 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" } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment