PR target/49206
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 2 Sep 2012 08:49:31 +0000 (08:49 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 2 Sep 2012 08:49:31 +0000 (08:49 +0000)
* gcc.c-torture/compile/pr49206.c: New test.

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

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

index f027c28..0fa7375 100644 (file)
@@ -1,3 +1,8 @@
+2012-09-02  Uros Bizjak  <ubizjak@gmail.com>
+
+       PR target/49206
+       * gcc.c-torture/compile/pr49206.c: New test.
+
 2012-09-02  Dominique Dhumieres  <dominiq@lps.ens.fr>
            Uros Bizjak  <ubizjak@gmail.com>
 
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr49206.c b/gcc/testsuite/gcc.c-torture/compile/pr49206.c
new file mode 100644 (file)
index 0000000..1df23c9
--- /dev/null
@@ -0,0 +1,26 @@
+struct S1
+{
+  short f0;
+};
+extern volatile struct S1 g_5;
+extern int g_120, i;
+extern short g_339;
+
+int
+func_72 (int x, int y, struct S1 z)
+{
+  for (z.f0 = -3; z.f0 > 16; z.f0 += 1)
+    foo ();
+  return g_120;
+}
+
+int
+main ()
+{
+  while (g_339 % 0x200003)
+    continue;
+  if (i)
+    func_72 (0, 0, g_5);
+  foo (&g_339);
+  return 0;
+}