Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr27301.c
blobcc55c745a0337065ba75832ea04131e1dd1efe83
1 /* PR c/27301 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -std=gnu89" } */
4 /* { dg-require-effective-target alloca } */
6 void
7 foo (void *ptr, long n)
9 __asm__ __volatile__ ("" :: "m" (({ struct { char x[n]; } *p = ptr; *p; })));
12 void
13 bar (void *ptr, long n)
15 __asm__ __volatile__ ("" :: "m" (*({ struct { char x[n]; } *p = ptr; p; })));