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

7 lines
260 B
C++

// RUN: %check_clang_tidy -expect-clang-tidy-error %s altera-struct-pack-align %t -- -header-filter=.*
struct Foo {
member; // no-crash
};
// CHECK-MESSAGES: :[[@LINE-2]]:3: error: C++ requires a type specifier for all declarations [clang-diagnostic-error]