summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20001121-1.c21
2 files changed, 25 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index a115d327057..572e897fc29 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2000-11-21 Richard Henderson <rth@redhat.com>
+
+ * gcc.c-torture/compile/20001121-1.c: New test.
+
2000-11-20 Neil Booth <neilb@earthling.net>
* gcc.dg/cpp/integrated1.c: New test.
diff --git a/gcc/testsuite/gcc.c-torture/compile/20001121-1.c b/gcc/testsuite/gcc.c-torture/compile/20001121-1.c
new file mode 100644
index 00000000000..38efe6da0fe
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/20001121-1.c
@@ -0,0 +1,21 @@
+extern int bar(int);
+
+int foo(int x)
+{
+ return 1 + bar(
+ ({
+ int y;
+ switch (x)
+ {
+ case 0: y = 1; break;
+ case 1: y = 2; break;
+ case 2: y = 3; break;
+ case 3: y = 4; break;
+ case 4: y = 5; break;
+ case 5: y = 6; break;
+ default: y = 7; break;
+ }
+ y;
+ })
+ );
+}