summaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-11-21 09:09:45 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-11-21 09:09:45 +0000
commita413869de2971aec59b7de0766b28b89794834d1 (patch)
tree279fbdfcde960bc4b8a2264dadd02abcdef9737b /gcc/testsuite
parentc5d78cf2db50d32c1fa86f1b6493f4bcb30b751e (diff)
downloadgcc-a413869de2971aec59b7de0766b28b89794834d1.tar.gz
New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37611 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/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;
+ })
+ );
+}