Skip to content
Snippets Groups Projects
Commit 66bf2b03 authored by Richard Smith's avatar Richard Smith
Browse files

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

Patch by Jacob Young!


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@300266 91177308-0d34-0410-b5e6-96231b3b80d8
parent 18974a95
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment