summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/declarators.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-11-11 06:13:16 +0000
committerChris Lattner <sabre@nondot.org>2008-11-11 06:13:16 +0000
commit8c5dd730cec8aa22fe04abf61cd44a27a4c74c1a (patch)
treebeeb4a84e15ff7260bc6b3e8a5e998730f00b534 /clang/test/Parser/declarators.c
parent2126a6d3c44889b1b6fee8484c29166b7ea68659 (diff)
downloadbcm5719-llvm-8c5dd730cec8aa22fe04abf61cd44a27a4c74c1a.tar.gz
bcm5719-llvm-8c5dd730cec8aa22fe04abf61cd44a27a4c74c1a.zip
Fix PR3031 by silencing follow-on errors in invalid declarations.
llvm-svn: 59027
Diffstat (limited to 'clang/test/Parser/declarators.c')
-rw-r--r--clang/test/Parser/declarators.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Parser/declarators.c b/clang/test/Parser/declarators.c
index 3e0380ea878..fb7704faf3d 100644
--- a/clang/test/Parser/declarators.c
+++ b/clang/test/Parser/declarators.c
@@ -32,3 +32,7 @@ int test3(x,
int test4(x, x) int x; {} /* expected-error {{redefinition of parameter 'x'}} */
+
+// PR3031
+int (test5), ; // expected-error {{expected identifier or '('}}
+
OpenPOWER on IntegriCloud