summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/20041014-1.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-14 23:20:58 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-14 23:20:58 +0000
commit69c2525c87aa3cda2b5f636702889441ea1698f4 (patch)
tree7534024d48e27ca0af83286859f217f61e28cc3c /gcc/testsuite/gcc.dg/20041014-1.c
parentc6224531a4d142294fa7f14edb1f8b082208e3e1 (diff)
downloadgcc-69c2525c87aa3cda2b5f636702889441ea1698f4.tar.gz
PR c/17023
* c-decl.c (store_parm_decls_oldstyle): Care for parameter type as error_mark_node. * c-parse.in (compstmt_primary_start): Check cur_stmt_list non-null instaed of current_function_decl non-null. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89063 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/20041014-1.c')
-rw-r--r--gcc/testsuite/gcc.dg/20041014-1.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/20041014-1.c b/gcc/testsuite/gcc.dg/20041014-1.c
new file mode 100644
index 00000000000..699844074ed
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/20041014-1.c
@@ -0,0 +1,10 @@
+/* PR c/17023 */
+/* { dg-do compile } */
+/* { dg-options "" } */
+
+void
+f(a, b)
+ int a;
+ int b[({ void h() {} 1; })]; /* { dg-error "braced-group" } */
+{
+}