Commit fd99dfdf by Jakub Jelinek Committed by Jakub Jelinek

re PR testsuite/45663 (New test failures)

	PR middle-end/45663
	* gcc.dg/guality/sra-1.c: Move all gdb-test lines to the second bar invocation
	instead of first.

From-SVN: r166505
parent 67c6812f
2010-11-09 Jakub Jelinek <jakub@redhat.com>
2010-10-09 Jakub Jelinek <jakub@redhat.com>
PR middle-end/45663
* gcc.dg/guality/sra-1.c: Move all gdb-test lines to the second bar invocation
instead of first.
PR debug/46171
* gcc.dg/pr46171.c: New test.
......
......@@ -17,8 +17,8 @@ f1 (int k)
struct A a = { 4, k + 6 };
asm ("" : "+r" (a.i));
a.j++;
bar (a.i); /* { dg-final { gdb-test 20 "a.i" "4" } } */
bar (a.j); /* { dg-final { gdb-test 20 "a.j" "14" } } */
bar (a.i); /* { dg-final { gdb-test 21 "a.i" "4" } } */
bar (a.j); /* { dg-final { gdb-test 21 "a.j" "14" } } */
return a.i + a.j;
}
......@@ -28,8 +28,8 @@ f2 (int k)
int a[2] = { 4, k + 6 };
asm ("" : "+r" (a[0]));
a[1]++;
bar (a[0]); /* { dg-final { gdb-test 31 "a\[0\]" "4" } } */
bar (a[1]); /* { dg-final { gdb-test 31 "a\[1\]" "14" } } */
bar (a[0]); /* { dg-final { gdb-test 32 "a\[0\]" "4" } } */
bar (a[1]); /* { dg-final { gdb-test 32 "a\[1\]" "14" } } */
return a[0] + a[1];
}
......@@ -39,8 +39,8 @@ f3 (int k)
struct B a = { 4, k + 6 };
asm ("" : "+r" (a.i));
a.j++;
bar (a.i); /* { dg-final { gdb-test 42 "a.i" "4" } } */
bar (a.j); /* { dg-final { gdb-test 42 "a.j" "14" } } */
bar (a.i); /* { dg-final { gdb-test 43 "a.i" "4" } } */
bar (a.j); /* { dg-final { gdb-test 43 "a.j" "14" } } */
return a.i + a.j;
}
......
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