☰
Debian Codegraph
@
1:19.1.7-22
1:19.1.7-20
/
/
clang-tools-extra
/
test
/
clang-tidy
/
checkers
/
readability
/
braces-around-statements-assert-failure.cpp
☽
☼
clang-tools-extra/test/clang-tidy/checkers/readability/braces-around-statements-assert-failure.cpp
code
plain
raw
APACHE-2-LLVM-EXCEPTIONS
2003-2017 University of Illinois at Urbana-Champaign.
debian/copyright
1
// RUN: not clang-tidy -checks='-*,readability-braces-around-statements' %s --
2
3
// Note: this test expects no assert failure happened in clang-tidy.
4
5
int test_failure() {
6
if (std::rand()) {
7
}
8
}
9
10
void test_failure2() {
11
for (a b c;;
12
}