brintos

brintos / llvm-project-archived public Read only

0
0
Text · 292 B · 03a1d34 Raw
12 lines · cpp
1// RUN: clang-tidy %s -checks=-*,misc-redundant-expression -- -std=c++20 | count 02 3namespace concepts {4// redundant expressions inside concepts make sense, ignore them5template <class I>6concept TestConcept = requires(I i) {7  {i - i};8  {i && i};9  {i ? i : i};10};11} // namespace concepts12