From cc67d2fa8036ea5b92e83d97faecd3cb38417b80 Mon Sep 17 00:00:00 2001 From: Christian Ehrhardt Date: Thu, 7 Oct 2004 06:08:15 +0000 Subject: [PATCH] * gcc.c-torture/compile/20041007-1.c: New test. From-SVN: r88662 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.c-torture/compile/20041007-1.c | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 gcc/testsuite/gcc.c-torture/compile/20041007-1.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 04ce16093e7..36562b4b43f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2004-10-07 Eric Botcazou + + * gcc.c-torture/compile/20041007-1.c: New test. + 2004-10-07 Paul Brook PR fortran/17678 diff --git a/gcc/testsuite/gcc.c-torture/compile/20041007-1.c b/gcc/testsuite/gcc.c-torture/compile/20041007-1.c new file mode 100644 index 00000000000..ce524703d86 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20041007-1.c @@ -0,0 +1,16 @@ +/* PR rtl-optimization/17027 */ +/* Origin: dbk */ +/* Testcase by Christian Ehrhardt */ + +int bar(void); +void baz (void) __attribute__ ((noreturn)); /* noreturn is required */ + +void foo (void) +{ + while (bar ()) { + switch (1) { + default: + baz (); + } + } +}