* testsuite/libgomp.fortran/vla7.f90: Add -w to options.
[official-gcc.git] / gcc / testsuite / gcc.dg / asm-pr24146.c
blob0b1be7da7de099201cb4afe878715666c06001ac
1 /* { dg-do compile } */
3 /* Test that asm with no outputs are treated as volatile. */
5 void f(int x)
7 __asm__ ("extended asm not discarded" : : "r" (x));
10 void g (void)
12 __asm__ ("simple asm not discarded");
14 /* { dg-final { scan-assembler "extended asm not discarded" } } */
15 /* { dg-final { scan-assembler "simple asm not discarded" } } */