Commit 8f7d0ab9 by Andreas Schwab Committed by Andreas Schwab

* gcc.dg/pure-2.c: Update line numbers.

From-SVN: r217754
parent 05f9c675
2014-11-19 Andreas Schwab <schwab@suse.de>
* gcc.dg/pure-2.c: Update line numbers.
2014-11-19 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/63843
......
......@@ -8,14 +8,14 @@ extern int v;
/* Trivial. */
int
foo1(int a) /* { dg-bogus "normally" "detect pure candidate" } */
{ /* { dg-warning "pure" "detect pure candidate" { target *-*-* } "9" } */
{ /* { dg-warning "pure" "detect pure candidate" { target *-*-* } "10" } */
return v;
}
/* Loops known to be normally and extern const calls should be safe. */
int __attribute__ ((noinline))
foo2(int n) /* { dg-bogus "normally" "detect pure candidate" } */
{ /* { dg-warning "pure" "detect pure candidate" { target *-*-* } "16" } */
{ /* { dg-warning "pure" "detect pure candidate" { target *-*-* } "17" } */
int ret = 0;
int i;
for (i=0; i<n; i++)
......@@ -53,6 +53,6 @@ foo4(int n) /* { dg-warning "pure\[^\n\]* normally" "detect pure candidate" } *
int
foo5(int n) /* { dg-bogus "normally" "detect pure candidate" } */
{ /* { dg-warning "pure" "detect pure candidate" { target *-*-* } "54" } */
{ /* { dg-warning "pure" "detect pure candidate" { target *-*-* } "55" } */
return foo2(n);
}
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