diff options
author | Richard Guenther <rguenther@suse.de> | 2009-07-08 12:58:36 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2009-07-08 12:58:36 +0000 |
commit | acb78844c730bdb9b411442caa4df7ee78309596 (patch) | |
tree | 5521a83fd79ec9f36b30020dfba398b2bec8ac95 | |
parent | 9cb225b93f850d79193ed426c9684fc3eef36f05 (diff) | |
download | gcc-acb78844c730bdb9b411442caa4df7ee78309596.zip gcc-acb78844c730bdb9b411442caa4df7ee78309596.tar.gz gcc-acb78844c730bdb9b411442caa4df7ee78309596.tar.bz2 |
ssa-pta-fn-1.c: Fix invalid testcase again.
2009-07-08 Richard Guenther <rguenther@suse.de>
* gcc.dg/torture/ssa-pta-fn-1.c: Fix invalid testcase again.
From-SVN: r149368
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/torture/ssa-pta-fn-1.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8a597ea..5955370 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2009-07-08 Richard Guenther <rguenther@suse.de> + * gcc.dg/torture/ssa-pta-fn-1.c: Fix invalid testcase again. + +2009-07-08 Richard Guenther <rguenther@suse.de> + * gcc.dg/torture/ssa-pta-fn-1.c: Fix invalid testcase. 2009-07-08 Paul Thomas <pault@gcc.gnu.org> diff --git a/gcc/testsuite/gcc.dg/torture/ssa-pta-fn-1.c b/gcc/testsuite/gcc.dg/torture/ssa-pta-fn-1.c index a93372d..80785f0 100644 --- a/gcc/testsuite/gcc.dg/torture/ssa-pta-fn-1.c +++ b/gcc/testsuite/gcc.dg/torture/ssa-pta-fn-1.c @@ -4,13 +4,13 @@ extern void abort (void); int *glob; -volatile int dummy; +int dummy; int * __attribute__((noinline,const)) foo_const(int *p) { return p; } int * __attribute__((noinline,pure)) -foo_pure(int *p) { dummy; return p; } +foo_pure(int *p) { return p + dummy; } int * __attribute__((noinline)) foo_normal(int *p) { glob = p; return p; } |