blob: 2b15f29bf420f06bf9479d3368b0a593d2c74f4f [file] [log] [blame]
// RUN: clang %s -verify
int foo() {
int a;
// PR3788
asm("nop" : : "m"((int)(a))); // expected-error {{cast in a inline asm context requiring an l-value}}
// PR3794
asm("nop" : "=r"((unsigned)a)); // expected-error {{cast in a inline asm context requiring an l-value}}
}