summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c90-arraydecl-1.c
diff options
context:
space:
mode:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2009-02-04 00:59:21 +0000
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2009-02-04 00:59:21 +0000
commit51428eb144388fc3122aeff8b5f3b5f8be3a5a57 (patch)
treee3c8d3d5d76924587be86ae6609bd1a94db4b04f /gcc/testsuite/gcc.dg/c90-arraydecl-1.c
parent51bbf09d0e924bb9c426ed5750b828fc36c04eea (diff)
downloadgcc-51428eb144388fc3122aeff8b5f3b5f8be3a5a57.tar.gz
PR c/29129
* c-decl.c (grokdeclarator): Mark [*] arrays in field declarators as having variable size. Do not give an error for unnamed parameters with [*] declarators. Give a warning for type names with [*] declarators and mark them as variable size. * c-parser.c (c_parser_sizeof_expression): Do not give an error for sizeof applied to [*] type names. testsuite: * c90-arraydecl-1.c: Do not expect error for [*] in abstract declarator. * vla-6.c: Likewise. Expect warning not error for [*] lexically inside function prototype but not part of parameter declarator. * vla-11.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143918 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/c90-arraydecl-1.c')
-rw-r--r--gcc/testsuite/gcc.dg/c90-arraydecl-1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/c90-arraydecl-1.c b/gcc/testsuite/gcc.dg/c90-arraydecl-1.c
index 97dc1eee663..2b7eadbf615 100644
--- a/gcc/testsuite/gcc.dg/c90-arraydecl-1.c
+++ b/gcc/testsuite/gcc.dg/c90-arraydecl-1.c
@@ -10,7 +10,7 @@
void foo0 (int a, int b[*]); /* { dg-error "ISO C90" "\[*\] not in C90" } */
void foo1 (int, int [*]); /* { dg-error "ISO C90" "\[*\] not in C90" } */
-/* { dg-error "allowed" "\'\[*\]\' not allowed in other than a declaration" { target *-*-* } 12 } */
+
/* Use of static and type qualifiers (not allowed with abstract declarators)
is a C99 feature. */