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
5int test_failure() {
6 if (std::rand()) {
7 }
8}
9
10void test_failure2() {
11 for (a b c;;
12}
13

source code of clang-tools-extra/test/clang-tidy/checkers/readability/braces-around-statements-assert-failure.cpp