OSDN Git Service

* gcc.c-torture/compile/20041007-1.c: New test.
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Oct 2004 06:08:15 +0000 (06:08 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Oct 2004 06:08:15 +0000 (06:08 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88662 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20041007-1.c [new file with mode: 0644]

index 04ce160..36562b4 100644 (file)
@@ -1,3 +1,7 @@
+2004-10-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       * gcc.c-torture/compile/20041007-1.c: New test.
+
 2004-10-07  Paul Brook  <paul@codesourcery.com>
 
        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 (file)
index 0000000..ce52470
--- /dev/null
@@ -0,0 +1,16 @@
+/* PR rtl-optimization/17027 */
+/* Origin: dbk <sfc@village.uunet.be> */
+/* Testcase by Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de> */
+
+int bar(void);
+void baz (void)  __attribute__ ((noreturn)); /* noreturn is required */
+
+void foo (void) 
+{
+  while (bar ()) {
+    switch (1) {
+      default:
+      baz ();
+    }
+  }
+}