blob: dfa284ae8b52b1e1607c476fc5cf3c5f6abdacb4 [file] [log] [blame]
Argyrios Kyrtzidisdd7744d2010-08-16 17:27:08 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3struct S {
4 S(); // expected-note {{because type 'S' has a user-declared constructor}}
5};
6
7struct E {
8 struct {
9 S x; // expected-error {{anonymous struct member 'x' has a non-trivial constructor}}
10 };
11};