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

source code of clang-tools-extra/test/clang-tidy/checkers/misc/redundant-expression-cxx20.cpp