xref: /llvm-project/clang-tools-extra/test/clang-tidy/checkers/misc/redundant-expression-cxx20.cpp (revision a8fbd1157debfe5872d4a34babef3aab75732aa7)
1 // RUN: clang-tidy %s -checks=-*,misc-redundant-expression -- -std=c++20 | count 0
2 
3 namespace concepts {
4 // redundant expressions inside concepts make sense, ignore them
5 template <class I>
6 concept TestConcept = requires(I i) {
7   {i - i};
8   {i && i};
9   {i ? i : i};
10 };
11 } // namespace concepts
12