brintos

brintos / llvm-project-archived public Read only

0
0
Text · 155 B · b332b2e Raw
7 lines · cpp
1// RUN: %check_clang_tidy -std=c++20 %s bugprone-assignment-in-if-condition %t2 3void testRequires() {4  if constexpr (requires(int &a) { a = 0; }) {5  }6}7