PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr47925.c
blob89f54c13a55028b0d89d7f9304a382eef62d848a
1 struct s { volatile struct s *next; };
3 void __attribute__((noinline))
4 bar (int ignored, int n)
6 asm volatile ("");
9 int __attribute__((noinline))
10 foo (volatile struct s *ptr, int n)
12 int i;
14 bar (0, n);
15 for (i = 0; i < n; i++)
16 ptr = ptr->next;
19 int main (void)
21 volatile struct s rec = { &rec };
22 foo (&rec, 10);
23 return 0;