summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/declarators.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-02 17:32:27 +0000
committerChris Lattner <sabre@nondot.org>2010-02-02 17:32:27 +0000
commitafe6a840d4ad4695bc25db9e99376678e1dd42ec (patch)
tree2a854d69c441928162ba3248d46a5a2a4add270f /clang/test/Parser/declarators.c
parentffa70e8b270ed348a86ce7d064dc32b7db427767 (diff)
downloadbcm5719-llvm-afe6a840d4ad4695bc25db9e99376678e1dd42ec.tar.gz
bcm5719-llvm-afe6a840d4ad4695bc25db9e99376678e1dd42ec.zip
the declspec of a declaration can have storage-class specifiers,
type qualifiers and type specifiers in any order. For example, this is valid: struct x {...} typedef y; This fixes PR6208. llvm-svn: 95094
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 074e2ad7cb8..edd68cc28c2 100644
--- a/clang/test/Parser/declarators.c
+++ b/clang/test/Parser/declarators.c
@@ -71,3 +71,7 @@ struct test9 {
int y;
int z // expected-warning {{expected ';' at end of declaration list}}
};
+
+// PR6208
+struct test10 { int a; } static test10x;
+struct test11 { int a; } const test11x;
OpenPOWER on IntegriCloud