c-parser.c (c_parser_declaration_or_fndef): Discard all type qualifiers in __auto_typ...
authorSebastian Huber <sebastian.huber@embedded-brains.de>
Fri, 27 Jun 2014 06:52:18 +0000 (06:52 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 27 Jun 2014 06:52:18 +0000 (06:52 +0000)
commit9698b078c86c21aa6a2a2fb4e5bc198f6f1df24c
treeb588d0373131659bca29f2c2a1903cc3d85b46fb
parent4443341a9e4b33ead4365160127d0a51a2452c72
c-parser.c (c_parser_declaration_or_fndef): Discard all type qualifiers in __auto_type for atomic types.

* 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.

From-SVN: r212062
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/typeof-2.c [new file with mode: 0644]