forked from OSchip/llvm-project
parent
aaa1db66a1
commit
35af0ab3eb
|
@ -942,6 +942,7 @@ void Parser::ParseClassSpecifier(tok::TokenKind TagTokKind,
|
|||
case tok::annot_cxxscope: // struct foo {...} a:: b;
|
||||
case tok::annot_typename: // struct foo {...} a ::b;
|
||||
case tok::annot_template_id: // struct foo {...} a<int> ::b;
|
||||
case tok::comma: // __builtin_offsetof(struct foo{...} ,
|
||||
// Storage-class specifiers
|
||||
case tok::kw_static: // struct foo {...} static x;
|
||||
case tok::kw_extern: // struct foo {...} extern x;
|
||||
|
|
|
@ -75,3 +75,8 @@ struct test9 {
|
|||
// PR6208
|
||||
struct test10 { int a; } static test10x;
|
||||
struct test11 { int a; } const test11x;
|
||||
|
||||
// PR6216
|
||||
void test12() {
|
||||
(void)__builtin_offsetof(struct { char c; int i; }, i);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue