Support __extension__

This commit is contained in:
Josh Holtrop 2018-05-12 11:57:44 -04:00
parent 6890ac97b5
commit e9931d576b
2 changed files with 3 additions and 0 deletions

View File

@ -126,6 +126,7 @@ __attribute__ return ATTRIBUTE;
__restrict return RESTRICT;
asm return ASM;
__asm__ return ASM;
__extension__ return EXTENSION;
L?'[^\\]' return CHAR_CONST;
L?'\\.' return CHAR_CONST;

View File

@ -115,6 +115,7 @@ int yylex(YYSTYPE *, YYLTYPE *);
%token ATTRIBUTE;
%token RESTRICT;
%token ASM;
%token EXTENSION;
%start translation_unit
@ -424,6 +425,7 @@ type_qualifier
: CONST
| VOLATILE
| RESTRICT
| EXTENSION
;
declarator