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 } */
18 /* { dg-error "invalid lvalue in asm output 0" "invalid lvalue" { target *-*-* } .-2 } */
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 } */
42 /* { dg-error "invalid lvalue in asm output 0" "invalid lvalue" { target *-*-* } .-2 } */
46 __asm
volatile ("" : : "r" (*x
)); /* { dg-error "dereferencing pointer to incomplete type" } */
52 __asm
volatile ("" : "=r" (*x
)); /* { dg-error "invalid lvalue in asm output 0" } */