forked from OSchip/llvm-project
[clang] [test] [NFC] Eliminate some hard tabs in tests
"cxx2b-consteval-if.cpp" was showing up misindented.
This commit is contained in:
parent
729d29e167
commit
597f2bcee8
|
@ -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}}
|
||||
}
|
||||
|
|
|
@ -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'}}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,6 +7,6 @@ static void another(void) { // expected-warning {{function 'another' is not need
|
|||
|
||||
template <typename T>
|
||||
void foo(void) {
|
||||
thing();
|
||||
another();
|
||||
thing();
|
||||
another();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue