PR tree-optimization/43560
* gcc.c-torture/execute/pr43560.c: New test.
From-SVN: r158220
+2010-04-12 Jakub Jelinek <jakub@redhat.com>
+
+ PR tree-optimization/43560
+ * gcc.c-torture/execute/pr43560.c: New test.
+
2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/aggr13.adb: New test.
--- /dev/null
+/* PR tree-optimization/43560 */
+
+struct S
+{
+ int a, b;
+ char c[10];
+};
+
+__attribute__ ((noinline)) void
+test (struct S *x)
+{
+ while (x->b > 1 && x->c[x->b - 1] == '/')
+ {
+ x->b--;
+ x->c[x->b] = '\0';
+ }
+}
+
+const struct S s = { 0, 0, "" };
+
+int
+main ()
+{
+ struct S *p;
+ asm ("" : "=r" (p) : "0" (&s));
+ test (p);
+ return 0;
+}