1 // RUN: %clang_cc1 %s -verify 2 3 int foo() { 4 int a; 5 // PR3788 6 asm("nop" : : "m"((int)(a))); // expected-error {{cast in a inline asm context requiring an l-value}} 7 // PR3794 8 asm("nop" : "=r"((unsigned)a)); // expected-error {{cast in a inline asm context requiring an l-value}} 9 } 10 11