Add test for anonymous struct containing an implicitly private data member.

Patch by Jacob Young!

llvm-svn: 300266
This commit is contained in:
Richard Smith 2017-04-13 21:51:04 +00:00
parent e7563f8dda
commit 78fe17131b

View File

@ -21,6 +21,9 @@ struct E {
};
static struct {
};
class {
int anon_priv_field; // expected-error {{anonymous struct cannot contain a private data member}}
};
};
template <class T> void foo(T);