diff mbox

Add new test

Message ID 9f7f1e6f-a0c2-9c8b-2d84-063ebed89a51@redhat.com
State New
Headers show

Commit Message

Jeff Law Jan. 10, 2017, 8:57 p.m. UTC
pr77766 is a duplicate of pr78856.  This just adds the test for pr77766 
to the testsuite.  Committing to the trunk.

Jeff
commit 2729592d26c48c6c2add94f4ee98bd4328eacf85
Author: law <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Tue Jan 10 20:55:59 2017 +0000

    	PR tree-optimization/77766
    	PR tree-optimization/78856
    	* gcc.c-torture/execute/pr77766.c: New test.
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@244287 138bc75d-0d04-0410-961f-82ee72b054a4
diff mbox

Patch

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index bc86b4f..009d32d 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@ 
+2017-01-10  Jeff Law  <law@redhat.com>
+
+	PR tree-optimization/77766
+	PR tree-optimization/78856
+	* gcc.c-torture/execute/pr77766.c: New test.
+
 2016-01-10  Richard Biener  <rguenther@suse.de>
 
 	PR tree-optimization/79034
diff --git a/gcc/testsuite/gcc.c-torture/execute/pr77766.c b/gcc/testsuite/gcc.c-torture/execute/pr77766.c
new file mode 100644
index 0000000..f8f61ad
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/execute/pr77766.c
@@ -0,0 +1,28 @@ 
+char a;
+short b, d = 5, h;
+char c[1];
+int e, f = 4, g, j;
+int main() {
+  int i;
+  for (; f; f = a) {
+    g = 0;
+    for (; g <= 32; ++g) {
+      i = 0;
+      for (; i < 3; i++)
+        while (1 > d)
+          if (c[b])
+            break;
+    L:
+      if (j)
+        break;
+    }
+  }
+  e = 0;
+  for (; e; e = 0) {
+    d++;
+    for (; h;)
+      goto L;
+  }
+  return 0;
+}
+