[NFC] Fixed failed test
authorDavid Bolvansky <david.bolvansky@gmail.com>
Sun, 22 Sep 2019 22:15:11 +0000 (22:15 +0000)
committerDavid Bolvansky <david.bolvansky@gmail.com>
Sun, 22 Sep 2019 22:15:11 +0000 (22:15 +0000)
llvm-svn: 372533

clang/test/SemaCXX/constexpr-builtin-bit-cast.cpp

index d48ee03..8f4c347 100644 (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;