2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / 20010903-1.c
blob8e519f26e41c391f53ea5a22a991e554a4358bc1
1 struct A {
2 long a;
3 };
5 static inline void foo(struct A *x)
7 __asm__ __volatile__("" : "+m"(x->a) : "r"(x) : "memory", "cc");
10 static inline void bar(struct A *x)
12 foo(x);
15 struct B { char buf[640]; struct A a; };
16 struct B b[32];
18 int baz(void)
20 int i;
21 struct B *j;
22 for (i = 1; i < 32; i++)
24 j = &b[i];
25 bar(&j->a);
27 return 0;