[PATCH] D146376: Update static_assert message for redundant cases
Christopher Di Bella via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 22 10:04:00 PDT 2023
cjdb added inline comments.
================
Comment at: clang/test/SemaCXX/static-assert.cpp:261-265
static_assert(invert(true) == invert(false), ""); // expected-error {{failed}} \
- // expected-note {{evaluates to 'false == true'}}
/// No notes here since we compare a bool expression with a bool literal.
static_assert(invert(true) == true, ""); // expected-error {{failed}}
----------------
We should also have a test for conjunctions, disjunctions, and negations.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146376/new/
https://reviews.llvm.org/D146376
More information about the cfe-commits
mailing list