summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/gcc.dg/c99-arraydecl-1.c
Commit message (Collapse)AuthorAgeFilesLines
* PR c/14050jsm282007-11-221-10/+10
| | | | | | | | | | | | | | | | | * c-decl.c (set_array_declarator_inner): Don't give error for static or type qualifiers in abstract declarator. Remove abstract_p parameter. * c-tree.h (set_array_declarator_inner): Update prototype. * c-parser.c (c_parser_direct_declarator_inner): Update call to set_array_declarator_inner. * doc/standards.texi: Update for C99 TC3. testsuite: * gcc.dg/c99-arraydecl-1.c: Don't expect errors for static or type qualifiers in abstract declarator. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130362 138bc75d-0d04-0410-961f-82ee72b054a4
* * c-parse.in (array_declarator): New. Handle C99 constructs.jsm282001-05-251-0/+111
Don't restrict [*] declarators to C only. (after_type_declarator, parm_declarator_starttypename, parm_declarator_nostarttypename, notype_declarator, direct_absdcl1): Use it. * c-decl.c (build_array_declarator, set_array_declarator_type): New functions. Warn that [*] isn't properly implemented; pedwarn for [*] outside C99 mode if pedantic rather than giving a hard error. (grokdeclarator): Handle static and type qualifiers in parameter array declarators. * c-tree.h (build_array_declarator, set_array_declarator_type): Declare. * extend.texi (Attribute Syntax): Document attributes in parameter array declarators. testsuite: * gcc.dg/c90-arraydecl-1.c, gcc.dg/c99-arraydecl-1.c: New tests. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42574 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud