* c-parser.c (c_parser_declaration_or_fndef): Discard all type
commit45c5b82333c61f3771d64808fe3291ec114313c8
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Jun 2014 06:52:18 +0000 (27 06:52 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Jun 2014 06:52:18 +0000 (27 06:52 +0000)
treeb588d0373131659bca29f2c2a1903cc3d85b46fb
parent7ee4ed2ea6e413111bfa3418fc1b1396056bf2ce
* c-parser.c (c_parser_declaration_or_fndef): Discard all type
qualifiers in __auto_type for atomic types.
(c_parser_typeof_specifier): Discard all type qualifiers in
__typeof__ for atomic types.

* gcc.dg/typeof-2.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@212062 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/typeof-2.c [new file with mode: 0644]