OSDN Git Service

PR middle-end/51592
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Dec 2011 23:11:37 +0000 (23:11 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Dec 2011 23:11:37 +0000 (23:11 +0000)
* gcc.dg/20111216-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182419 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/20111216-1.c [new file with mode: 0644]

index 37023d1..0a22ca9 100644 (file)
@@ -1,3 +1,8 @@
+2011-12-16  Ian Lance Taylor  <iant@google.com>
+
+       PR middle-end/51592
+       * gcc.dg/20111216-1.c: New test.
+
 2011-12-16  Jason Merrill  <jason@redhat.com>
 
        PR c++/51461
 2011-12-16  Jason Merrill  <jason@redhat.com>
 
        PR c++/51461
diff --git a/gcc/testsuite/gcc.dg/20111216-1.c b/gcc/testsuite/gcc.dg/20111216-1.c
new file mode 100644 (file)
index 0000000..cd82cf9
--- /dev/null
@@ -0,0 +1,17 @@
+/* { dg-do compile } */
+/* { dg-options "-O -fexceptions -fnon-call-exceptions" } */
+
+extern void f2 () __attribute__ ((noreturn));
+void
+f1 ()
+{
+  unsigned char a[8];
+  unsigned int i;
+
+  for (i = 0; i < 8; i++)
+    {
+      if (i > 8)
+       f2 ();
+      a[i] = i <= 8;
+    }
+}