summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Bolvansky <david.bolvansky@gmail.com>2019-09-30 20:23:22 +0000
committerDavid Bolvansky <david.bolvansky@gmail.com>2019-09-30 20:23:22 +0000
commitd2697e8388f65a8bbb6ec816f7bd5169bc484f00 (patch)
treec9fa0c74cfc9dbd518fc9a7e7c11c5178da91851
parent97e251e05a46f5b90af5a0bebebdda98e7fd98ab (diff)
downloadbcm5719-llvm-d2697e8388f65a8bbb6ec816f7bd5169bc484f00.tar.gz
bcm5719-llvm-d2697e8388f65a8bbb6ec816f7bd5169bc484f00.zip
[NFCI] Updated broken test
llvm-svn: 373256
-rw-r--r--clang/test/SemaCXX/warn-sign-conversion.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/warn-sign-conversion.cpp b/clang/test/SemaCXX/warn-sign-conversion.cpp
index dcfb95b6b57..2b88ecc1b0c 100644
--- a/clang/test/SemaCXX/warn-sign-conversion.cpp
+++ b/clang/test/SemaCXX/warn-sign-conversion.cpp
@@ -70,11 +70,15 @@ namespace test2 {
int d1 = 1 ? i : Foo<bool>::D; // expected-warning {{operand of ? changes signedness: 'test2::Foo<bool>::Named4' to 'int'}}
int d2 = 1 ? Foo<bool>::D : i; // expected-warning {{operand of ? changes signedness: 'test2::Foo<bool>::Named4' to 'int'}}
int d3 = 1 ? B : Foo<bool>::D; // expected-warning {{operand of ? changes signedness: 'test2::Foo<bool>::Named4' to 'int'}}
+ // expected-warning@+1 {{enumeration type mismatch in conditional expression ('test2::Named2' and 'test2::Foo<bool>::Named4')}}
int d4 = 1 ? Foo<bool>::D : B; // expected-warning {{operand of ? changes signedness: 'test2::Foo<bool>::Named4' to 'int'}}
+ // expected-warning@+1 {{enumeration type mismatch in conditional expression ('test2::Foo<bool>::Named4' and 'test2::Named2')}}
int e1 = 1 ? i : E; // expected-warning {{operand of ? changes signedness: 'test2::Named5' to 'int'}}
int e2 = 1 ? E : i; // expected-warning {{operand of ? changes signedness: 'test2::Named5' to 'int'}}
int e3 = 1 ? E : B; // expected-warning {{operand of ? changes signedness: 'test2::Named5' to 'int'}}
+ // expected-warning@+1 {{enumeration type mismatch in conditional expression ('test2::Named5' and 'test2::Named2')}}
int e4 = 1 ? B : E; // expected-warning {{operand of ? changes signedness: 'test2::Named5' to 'int'}}
+ // expected-warning@+1 {{enumeration type mismatch in conditional expression ('test2::Named2' and 'test2::Named5')}}
}
}
OpenPOWER on IntegriCloud