llvm-project/clang-tools-extra/test/clang-tidy/checkers/altera-struct-pack-align-no...

8 lines
232 B
C++

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