From 140b3e24a3372c844341fe724e0d20874c66c5a0 Mon Sep 17 00:00:00 2001 From: David Bolvansky Date: Mon, 30 Sep 2019 20:41:56 +0000 Subject: [PATCH] [NFC] Fix tests, second try git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@373258 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/SemaCXX/warn-sign-conversion.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/SemaCXX/warn-sign-conversion.cpp b/test/SemaCXX/warn-sign-conversion.cpp index 2b88ecc1b0..3122a06f90 100644 --- a/test/SemaCXX/warn-sign-conversion.cpp +++ b/test/SemaCXX/warn-sign-conversion.cpp @@ -70,15 +70,15 @@ namespace test2 { int d1 = 1 ? i : Foo::D; // expected-warning {{operand of ? changes signedness: 'test2::Foo::Named4' to 'int'}} int d2 = 1 ? Foo::D : i; // expected-warning {{operand of ? changes signedness: 'test2::Foo::Named4' to 'int'}} int d3 = 1 ? B : Foo::D; // expected-warning {{operand of ? changes signedness: 'test2::Foo::Named4' to 'int'}} - // expected-warning@+1 {{enumeration type mismatch in conditional expression ('test2::Named2' and 'test2::Foo::Named4')}} + // expected-warning@-1 {{enumeration type mismatch in conditional expression ('test2::Named2' and 'test2::Foo::Named4')}} int d4 = 1 ? Foo::D : B; // expected-warning {{operand of ? changes signedness: 'test2::Foo::Named4' to 'int'}} - // expected-warning@+1 {{enumeration type mismatch in conditional expression ('test2::Foo::Named4' and 'test2::Named2')}} + // expected-warning@-1 {{enumeration type mismatch in conditional expression ('test2::Foo::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')}} + // 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')}} + // expected-warning@-1 {{enumeration type mismatch in conditional expression ('test2::Named2' and 'test2::Named5')}} } } -- 2.40.0