diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-30 20:41:49 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-30 20:41:49 +0000 |
commit | 8c2f247ff71d8a51d05e39acca137bb05a9c69e4 (patch) | |
tree | 8d448af986d8ff86cb0e52aeb4e76b3af101223b /gcc/testsuite/gcc.dg/20030324-1.c | |
parent | 15dc2ab074f6e55822e741b1dee69fcc35bd18ec (diff) | |
download | gcc-8c2f247ff71d8a51d05e39acca137bb05a9c69e4.tar.gz |
* gcc.dg/20030324-1.c: Add comments and abort if test fails.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65053 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/20030324-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/20030324-1.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/20030324-1.c b/gcc/testsuite/gcc.dg/20030324-1.c index 343c721dc64..7e46d040ee2 100644 --- a/gcc/testsuite/gcc.dg/20030324-1.c +++ b/gcc/testsuite/gcc.dg/20030324-1.c @@ -1,6 +1,11 @@ /* { dg-do run } */ /* { dg-options "-O -fstrength-reduce -fstrict-aliasing -fforce-mem -fgcse" } */ +/* PR optimization/10087 */ +/* Contributed by Peter van Hoof <p.van-hoof@qub.ac.uk> */ + +extern void abort(void); + void b(int*,int*); typedef struct { @@ -26,7 +31,8 @@ int main(void) s = E[j][i].T1; b(&j,&i); - printf( "result %.6e\n", s); + if (s != 1) + abort (); return 0; } |