| 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 |
