r372533 - [NFC] Fixed failed test

David Bolvansky via cfe-commits cfe-commits at lists.llvm.org
Sun Sep 22 15:15:12 PDT 2019


Author: xbolva00
Date: Sun Sep 22 15:15:11 2019
New Revision: 372533

URL: http://llvm.org/viewvc/llvm-project?rev=372533&view=rev
Log:
[NFC] Fixed failed test

Modified:
    cfe/trunk/test/SemaCXX/constexpr-builtin-bit-cast.cpp

Modified: cfe/trunk/test/SemaCXX/constexpr-builtin-bit-cast.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/constexpr-builtin-bit-cast.cpp?rev=372533&r1=372532&r2=372533&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/constexpr-builtin-bit-cast.cpp (original)
+++ cfe/trunk/test/SemaCXX/constexpr-builtin-bit-cast.cpp Sun Sep 22 15:15:11 2019
@@ -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;




More information about the cfe-commits mailing list