mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-14 14:56:47 +00:00
Add test for anonymous struct containing an implicitly private data member.
Patch by Jacob Young! llvm-svn: 300266
This commit is contained in:
parent
e7563f8dda
commit
78fe17131b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user