summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/constexpr-builtin-bit-cast.cpp
diff options
context:
space:
mode:
authorDavid Bolvansky <david.bolvansky@gmail.com>2019-09-22 22:15:11 +0000
committerDavid Bolvansky <david.bolvansky@gmail.com>2019-09-22 22:15:11 +0000
commit7b4d40e8db36532abdd0c5cd6b5c42a8d414ca42 (patch)
tree1e09c00be58a65632c37613984857663ab06d051 /clang/test/SemaCXX/constexpr-builtin-bit-cast.cpp
parent7c3d6f5a1bf6e5e6db0c6ca4498f6f053bcf35dd (diff)
downloadbcm5719-llvm-7b4d40e8db36532abdd0c5cd6b5c42a8d414ca42.tar.gz
bcm5719-llvm-7b4d40e8db36532abdd0c5cd6b5c42a8d414ca42.zip
[NFC] Fixed failed test
llvm-svn: 372533
Diffstat (limited to 'clang/test/SemaCXX/constexpr-builtin-bit-cast.cpp')
-rw-r--r--clang/test/SemaCXX/constexpr-builtin-bit-cast.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/constexpr-builtin-bit-cast.cpp b/clang/test/SemaCXX/constexpr-builtin-bit-cast.cpp
index d48ee03dcce..8f4c34744d9 100644
--- a/clang/test/SemaCXX/constexpr-builtin-bit-cast.cpp
+++ b/clang/test/SemaCXX/constexpr-builtin-bit-cast.cpp
@@ -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;
OpenPOWER on IntegriCloud