1 /* { dg-do compile } */ 2 3 /* Test that asm with no outputs are treated as volatile. */ 4 f(int x)5void f(int x) 6 { 7 __asm__ ("extended asm not discarded" : : "r" (x)); 8 } 9 g(void)10void g (void) 11 { 12 __asm__ ("simple asm not discarded"); 13 } 14 /* { dg-final { scan-assembler "extended asm not discarded" } } */ 15 /* { dg-final { scan-assembler "simple asm not discarded" } } */ 16 17