1 | // RUN: %check_clang_tidy -expect-clang-tidy-error %s altera-struct-pack-align %t -- -header-filter=.* |
---|---|
2 | |
3 | struct A; |
4 | struct B { |
5 | A a; |
6 | // CHECK-MESSAGES: :[[@LINE-1]]:5: error: field has incomplete type 'A' [clang-diagnostic-error] |
7 | }; |
8 |
1 | // RUN: %check_clang_tidy -expect-clang-tidy-error %s altera-struct-pack-align %t -- -header-filter=.* |
---|---|
2 | |
3 | struct A; |
4 | struct B { |
5 | A a; |
6 | // CHECK-MESSAGES: :[[@LINE-1]]:5: error: field has incomplete type 'A' [clang-diagnostic-error] |
7 | }; |
8 |