]> gcc.gnu.org Git - gcc.git/commitdiff
New test for PR56398.
authorMarek Polacek <polacek@redhat.com>
Thu, 21 Feb 2013 10:21:19 +0000 (10:21 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 21 Feb 2013 10:21:19 +0000 (10:21 +0000)
From-SVN: r196199

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr56398.C [new file with mode: 0644]

index 3ae4dc0c36d1133f921916f120b4a23fe6f03eff..5b6bf14062dc99dc5b8e144b86fa73081217a65a 100644 (file)
@@ -1,3 +1,8 @@
+2013-02-21  Marek Polacek  <polacek@redhat.com>
+
+       PR tree-optimization/56398
+       * g++.dg/torture/pr56398.C: New test. 
+
 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
 
        PR inline-asm/56405
diff --git a/gcc/testsuite/g++.dg/torture/pr56398.C b/gcc/testsuite/g++.dg/torture/pr56398.C
new file mode 100644 (file)
index 0000000..5b7bcf2
--- /dev/null
@@ -0,0 +1,22 @@
+// { dg-do compile }
+// { dg-options "-g" }
+
+namespace
+{
+#0 "/usr/include/c/4.8/bits/postypes.h" 3
+}
+
+vtkpow (int b)
+{
+  int a1;
+  int b1;
+  int c;
+  while (b1)
+    {
+      while (b)
+    b1 = 0;
+      b1 = b1 - 1;
+      c = c * a1;
+    }
+  return c;
+}
This page took 0.068464 seconds and 5 git commands to generate.