Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
clang
/
83eecbefa4931b95231c9f2a61fb7b9b15e00eec
/
.
/
test
/
SemaCXX
/
anonymous-struct.cpp
blob: dfa284ae8b52b1e1607c476fc5cf3c5f6abdacb4 [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -fsyntax-only -verify %s
struct
S
{
S
();
// expected-note {{because type 'S' has a user-declared constructor}}
};
struct
E
{
struct
{
S x
;
// expected-error {{anonymous struct member 'x' has a non-trivial constructor}}
};
};