diff options
author | Richard Henderson <rth@redhat.com> | 2000-11-21 01:09:45 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2000-11-21 01:09:45 -0800 |
commit | a5ccb99da91d1493b0f68881171c1ab6f971a63c (patch) | |
tree | 279fbdfcde960bc4b8a2264dadd02abcdef9737b | |
parent | 325dd7fd88667be3dc50b309147ee7cd3be08807 (diff) | |
download | gcc-a5ccb99da91d1493b0f68881171c1ab6f971a63c.zip gcc-a5ccb99da91d1493b0f68881171c1ab6f971a63c.tar.gz gcc-a5ccb99da91d1493b0f68881171c1ab6f971a63c.tar.bz2 |
New test.
From-SVN: r37611
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/20001121-1.c | 21 |
2 files changed, 25 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a115d32..572e897 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 0000000..38efe6d --- /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; + }) + ); +} |