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 | } |
13 |