PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr43560.c
blobcb420c614cc2e8f72c943666ac6634b12d549fe2
1 /* PR tree-optimization/43560 */
3 struct S
5 int a, b;
6 char c[10];
7 };
9 __attribute__ ((noinline)) void
10 test (struct S *x)
12 while (x->b > 1 && x->c[x->b - 1] == '/')
14 x->b--;
15 x->c[x->b] = '\0';
19 const struct S s = { 0, 0, "" };
21 int
22 main ()
24 struct S *p;
25 asm ("" : "=r" (p) : "0" (&s));
26 test (p);
27 return 0;