bolt/deps/llvm-18.1.8/clang-tools-extra/test/clang-tidy/checkers/misc/redundant-expression-cxx20.cpp
2025-02-14 19:21:04 +01:00

11 lines
292 B
C++

// RUN: clang-tidy %s -checks=-*,misc-redundant-expression -- -std=c++20 | count 0
namespace concepts {
// redundant expressions inside concepts make sense, ignore them
template <class I>
concept TestConcept = requires(I i) {
{i - i};
{i && i};
{i ? i : i};
};
} // namespace concepts