forked from OSchip/llvm-project
parent
222b8bd6ad
commit
40dc267160
|
@ -1349,7 +1349,8 @@ DIAG(warn_ret_stack_ref, WARNING,
|
|||
DIAG(warn_selfcomparison, WARNING,
|
||||
"self-comparison always results in a constant value")
|
||||
DIAG(warn_stringcompare, WARNING,
|
||||
"comparison against a string literal is undefined (use strcmp?)")
|
||||
"result of comparison against a string literal is unspecified"
|
||||
" (use strcmp?)")
|
||||
|
||||
|
||||
// Blocks
|
||||
|
|
|
@ -78,6 +78,6 @@ void test11(struct mystruct P, float F) {
|
|||
|
||||
// PR3753
|
||||
int test12(const char *X) {
|
||||
return X == "foo"; // expected-warning {{comparison against a string literal is undefined}}
|
||||
return X == "foo"; // expected-warning {{comparison against a string literal is unspecified}}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue