2014-07-29 Ed Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr27301.c
blob3b5a8f55b5d533b39c36b2477d8ad9ee1441598a
1 /* PR c/27301 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -std=gnu89" } */
5 void
6 foo (void *ptr, long n)
8 __asm__ __volatile__ ("" :: "m" (({ struct { char x[n]; } *p = ptr; *p; })));
11 void
12 bar (void *ptr, long n)
14 __asm__ __volatile__ ("" :: "m" (*({ struct { char x[n]; } *p = ptr; p; })));