1// RUN: %check_clang_tidy -std=c++20 %s bugprone-assignment-in-if-condition %t
2
3void testRequires() {
4 if constexpr (requires(int &a) { a = 0; }) {
5 }
6}
7

source code of clang-tools-extra/test/clang-tidy/checkers/bugprone/assignment-in-if-condition-cxx20.cpp