blob: 67c6cb0f88cd059c640c3db7a7128c737591aad2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* PR middle-end/43690 */
/* { dg-do compile } */
/* { dg-options "-O2" } */
void
foo (char *x)
{
asm ("" : : "m" (x++)); /* { dg-error "is not directly addressable" } */
asm ("" : : "m" (++x)); /* { dg-error "is not directly addressable" } */
asm ("" : : "m" (x--)); /* { dg-error "is not directly addressable" } */
asm ("" : : "m" (--x)); /* { dg-error "is not directly addressable" } */
asm ("" : : "m" (x + 1)); /* { dg-error "is not directly addressable" } */
}
|