summaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2001-04-04 15:14:24 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2001-04-04 15:14:24 +0000
commit1c49fb1f6d95bd8a5c98fc9417f9354a3f368066 (patch)
treeec8563114db54fbaaa6a2bcedb46d6d00989d62a /gcc/testsuite
parent9193bd65cc0783a5fc8a85ee46117c0877b5c3df (diff)
downloadgcc-1c49fb1f6d95bd8a5c98fc9417f9354a3f368066.tar.gz
* recog.c (validate_replace_rtx_1): Instead of aborting just make
sure the change won't be validated. * gcc.c-torture/compile/20010326-1.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41083 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010326-1.c16
2 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index c72d2def208..225f9280257 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2001-04-04 Jakub Jelinek <jakub@redhat.com>
+
+ * gcc.c-torture/compile/20010326-1.c: New test.
+
2001-04-03 Alexandre Oliva <aoliva@redhat.com>
* g++.old-deja/g++.ext/instantiate1.C: Adjust to accommodate
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010326-1.c b/gcc/testsuite/gcc.c-torture/compile/20010326-1.c
new file mode 100644
index 00000000000..43acf4588ca
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/20010326-1.c
@@ -0,0 +1,16 @@
+float d;
+int e, f;
+
+void foo (void)
+{
+ struct { float u, v; } a = {0.0, 0.0};
+ float b;
+ int c;
+
+ c = e;
+ if (c == 0)
+ c = f;
+ b = d;
+ if (a.v < b)
+ a.v = b;
+}