Sign in
fuchsia
/
third_party
/
github.com
/
llvm
/
llvm-project
/
refs/tags/llvmorg-12.0.0-rc3
/
.
/
clang-tools-extra
/
test
/
clang-tidy
/
checkers
/
cppcoreguidelines-pro-type-member-init-no-crash.cpp
blob: 300fff6cb179bfc00b7e48635af8efbcedaf9891 [
file
] [
log
] [
blame
]
// RUN: %check_clang_tidy -expect-clang-tidy-error %s cppcoreguidelines-pro-type-member-init %t
struct
X
{
X x
;
// CHECK-MESSAGES: :[[@LINE-1]]:5: error: field has incomplete type 'X' [clang-diagnostic-error]
int
a
=
10
;
};