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