aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlen Nakamura <glen@imodulo.com>2003-03-30 20:41:49 +0000
committerRichard Henderson <rth@gcc.gnu.org>2003-03-30 12:41:49 -0800
commit9b703090abb0b72c28ddfe1804d93bc6af5ec6a0 (patch)
tree8d448af986d8ff86cb0e52aeb4e76b3af101223b
parent78e68f88a5c0103a8cc46589968df72fad272d3b (diff)
downloadgcc-9b703090abb0b72c28ddfe1804d93bc6af5ec6a0.zip
gcc-9b703090abb0b72c28ddfe1804d93bc6af5ec6a0.tar.gz
gcc-9b703090abb0b72c28ddfe1804d93bc6af5ec6a0.tar.bz2
* gcc.dg/20030324-1.c: Add comments and abort if test fails.
From-SVN: r65053
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/20030324-1.c8
2 files changed, 11 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index b99dd59..dff3af3 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2003-03-30 Glen Nakamura <glen@imodulo.com>
+
+ * gcc.dg/20030324-1.c: Add comments and abort if test fails.
+
2003-03-28 Roger Sayle <roger@eyesopen.com>
* gcc.c-torture/execute/ieee/fp-cmp-6.c: Correct test for -O0.
diff --git a/gcc/testsuite/gcc.dg/20030324-1.c b/gcc/testsuite/gcc.dg/20030324-1.c
index 343c721..7e46d04 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;
}