[NFC] Fixed failed test

llvm-svn: 372533
This commit is contained in:
David Bolvansky 2019-09-22 22:15:11 +00:00
parent 7c3d6f5a1b
commit 7b4d40e8db
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ void backtrace() {
void test_array_fill() {
constexpr unsigned char a[4] = {1, 2};
constexpr unsigned int i = bit_cast<unsigned int>(a);
static_assert(i == LITTLE_END ? 0x00000201 : 0x01020000, "");
static_assert(i == LITTLE_END ? 0x00000201 : 0x01020000, ""); // expected-warning {{converting the result of '?:' with integer constants to a boolean always evaluates to 'true'}}
}
typedef decltype(nullptr) nullptr_t;