This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix invalid ssa-pta-fn-1.c testcase
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 8 Jul 2009 14:39:22 +0200 (CEST)
- Subject: [PATCH] Fix invalid ssa-pta-fn-1.c testcase
Tested on x86_64-unknown-linux-gnu, applied to trunk.
Richard.
2009-07-08 Richard Guenther <rguenther@suse.de>
* gcc.dg/torture/ssa-pta-fn-1.c: Fix invalid testcase.
Index: testsuite/gcc.dg/torture/ssa-pta-fn-1.c
===================================================================
--- testsuite/gcc.dg/torture/ssa-pta-fn-1.c (revision 149362)
+++ testsuite/gcc.dg/torture/ssa-pta-fn-1.c (working copy)
@@ -4,12 +4,13 @@
extern void abort (void);
int *glob;
+volatile int dummy;
int * __attribute__((noinline,const))
foo_const(int *p) { return p; }
int * __attribute__((noinline,pure))
-foo_pure(int *p) { return glob; }
+foo_pure(int *p) { dummy; return p; }
int * __attribute__((noinline))
foo_normal(int *p) { glob = p; return p; }