PR tree-optimization/86401
[official-gcc.git] / gcc / testsuite / c-c++-common / pr43690.c
blob8d10744903f28ed4d9916d201fca1778755d5f93
1 /* PR middle-end/43690 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
5 void
6 foo (char *x)
8 asm ("" : : "m" (x++)); /* { dg-error "is not directly addressable" } */
9 asm ("" : : "m" (++x)); /* { dg-error "is not directly addressable" "" { target c } } */
10 asm ("" : : "m" (x--)); /* { dg-error "is not directly addressable" } */
11 asm ("" : : "m" (--x)); /* { dg-error "is not directly addressable" "" { target c } } */
12 asm ("" : : "m" (x + 1)); /* { dg-error "is not directly addressable" } */