Commit 9cb225b9 by Richard Biener

ssa-pta-fn-1.c: Fix invalid testcase.

2009-07-08  Richard Guenther  <rguenther@suse.de>

	* gcc.dg/torture/ssa-pta-fn-1.c: Fix invalid testcase.

From-SVN: r149367
parent 8ed77e22
2008-07-08 Paul Thomas <pault@gcc.gnu.org> 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>
PR fortran/40591 PR fortran/40591
* gfortran.dg/proc_ptr_21.f90: New test. * gfortran.dg/proc_ptr_21.f90: New test.
......
...@@ -4,12 +4,13 @@ ...@@ -4,12 +4,13 @@
extern void abort (void); extern void abort (void);
int *glob; int *glob;
volatile int dummy;
int * __attribute__((noinline,const)) int * __attribute__((noinline,const))
foo_const(int *p) { return p; } foo_const(int *p) { return p; }
int * __attribute__((noinline,pure)) int * __attribute__((noinline,pure))
foo_pure(int *p) { return glob; } foo_pure(int *p) { dummy; return p; }
int * __attribute__((noinline)) int * __attribute__((noinline))
foo_normal(int *p) { glob = p; return p; } foo_normal(int *p) { glob = p; return p; }
......
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