diff --git a/clang/test/SemaCXX/cxx2b-consteval-if.cpp b/clang/test/SemaCXX/cxx2b-consteval-if.cpp index ca65f2733fc1df..68921b3852f225 100644 --- a/clang/test/SemaCXX/cxx2b-consteval-if.cpp +++ b/clang/test/SemaCXX/cxx2b-consteval-if.cpp @@ -19,9 +19,9 @@ constexpr auto h() { constexpr auto i() { if consteval { if consteval { // expected-warning {{consteval if is always true in an immediate context}} - return 1; - } - return 2; + return 1; + } + return 2; } else { return 1.0; // expected-error {{'auto' in return type deduced as 'double' here but deduced as 'int' in earlier return statement}} } diff --git a/clang/test/SemaCXX/typo-correction-cxx17.cpp b/clang/test/SemaCXX/typo-correction-cxx17.cpp index f137499753422d..d6a8994f74e137 100644 --- a/clang/test/SemaCXX/typo-correction-cxx17.cpp +++ b/clang/test/SemaCXX/typo-correction-cxx17.cpp @@ -2,6 +2,6 @@ namespace decomp_decl { void f() { - auto [this_is_a_typo] = this_is_a_typp(); // expected-error{{use of undeclared identifier 'this_is_a_typp'}} + auto [this_is_a_typo] = this_is_a_typp(); // expected-error{{use of undeclared identifier 'this_is_a_typp'}} } } diff --git a/clang/test/SemaCXX/warn-static-function-inheader.cpp b/clang/test/SemaCXX/warn-static-function-inheader.cpp index 30386d9a258c8a..9eccfca933c786 100644 --- a/clang/test/SemaCXX/warn-static-function-inheader.cpp +++ b/clang/test/SemaCXX/warn-static-function-inheader.cpp @@ -7,6 +7,6 @@ static void another(void) { // expected-warning {{function 'another' is not need template void foo(void) { - thing(); - another(); + thing(); + another(); }