forked from OSchip/llvm-project
parent
8bece2e957
commit
208f61913d
|
@ -5144,7 +5144,7 @@ let CategoryName = "Inline Assembly Issue" in {
|
|||
def warn_asm_label_on_auto_decl : Warning<
|
||||
"ignored asm label '%0' on automatic variable">;
|
||||
def warn_invalid_asm_cast_lvalue : Warning<
|
||||
"invalid use of a cast in a inline asm context requiring an l-value: "
|
||||
"invalid use of a cast in an inline asm context requiring an l-value: "
|
||||
"accepted due to -fheinous-gnu-extensions, but clang may remove support "
|
||||
"for this in the future">;
|
||||
def warn_asm_mismatched_size_modifier : Warning<
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
void foo() {
|
||||
int a;
|
||||
// PR3788
|
||||
asm("nop" : : "m"((int)(a))); // expected-warning {{cast in a inline asm context requiring an l-value}}
|
||||
asm("nop" : : "m"((int)(a))); // expected-warning {{cast in an inline asm context requiring an l-value}}
|
||||
// PR3794
|
||||
asm("nop" : "=r"((unsigned)a)); // expected-warning {{cast in a inline asm context requiring an l-value}}
|
||||
asm("nop" : "=r"((unsigned)a)); // expected-warning {{cast in an inline asm context requiring an l-value}}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue