2 /* { dg-do compile } */
3 /* { dg-options "" } */
10 __asm
volatile ("" : : "r" (*x
)); /* { dg-warning "dereferencing" "deref" } */
11 } /* { dg-error "invalid use of void expression" "void expr" { target *-*-* } .-1 } */
16 __asm
volatile ("" : "=r" (*x
)); /* { dg-warning "dereferencing" "deref" } */
17 } /* { dg-error "invalid use of void expression" "void expr" { target *-*-* } .-1 } */
22 __asm
volatile ("" : : "m" (*x
)); /* { dg-warning "dereferencing" } */
28 __asm
volatile ("" : "=m" (*x
)); /* { dg-warning "dereferencing" } */
34 __asm
volatile ("" : : "g" (*x
)); /* { dg-warning "dereferencing" "deref" } */
35 } /* { dg-error "invalid use of void expression" "void expr" { target *-*-* } .-1 } */
40 __asm
volatile ("" : "=g" (*x
)); /* { dg-warning "dereferencing" "deref" } */
41 } /* { dg-error "invalid use of void expression" "void expr" { target *-*-* } .-1 } */
46 __asm
volatile ("" : : "r" (*x
)); /* { dg-error "invalid use of undefined type" } */
52 __asm
volatile ("" : "=r" (*x
)); /* { dg-error "impossible constraint in 'asm'" } */
53 /* { dg-error "non-memory output 0 must stay in memory" "memory" { target *-*-* } .-1 } */