3d1dcd9bfd
http://llvm.org/svn/llvm-project/cfe/branches/release_28@114020 Approved by: rpaulo (mentor)
12 lines
263 B
C++
12 lines
263 B
C++
// 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}}
|
|
};
|
|
};
|