summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/struct-decl.c
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-03-18 22:52:47 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-03-18 22:52:47 +0000
commitb1402ae94eb7ca0f52b358aaf8eae13247114bf7 (patch)
tree14940f4e599b70f7381b2332c39c3aa13a990799 /clang/test/Sema/struct-decl.c
parentae0052f114cc43c9ddcf03e6d016f7de0b0edcc2 (diff)
downloadbcm5719-llvm-b1402ae94eb7ca0f52b358aaf8eae13247114bf7.tar.gz
bcm5719-llvm-b1402ae94eb7ca0f52b358aaf8eae13247114bf7.zip
Add missing diagnostic for a nested-name-specifier on a free-standing type definition. Bump some related diagnostics from warning to extension in C++, since they're errors there. Add some missing checks for function specifiers on non-function declarations.
llvm-svn: 177335
Diffstat (limited to 'clang/test/Sema/struct-decl.c')
-rw-r--r--clang/test/Sema/struct-decl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Sema/struct-decl.c b/clang/test/Sema/struct-decl.c
index 6070e875f5a..819e856ac8c 100644
--- a/clang/test/Sema/struct-decl.c
+++ b/clang/test/Sema/struct-decl.c
@@ -54,6 +54,6 @@ static struct test1 { // expected-warning {{'static' ignored on this declaration
const struct test2 { // expected-warning {{'const' ignored on this declaration}}
int x;
};
-inline struct test3 { // expected-warning {{'inline' ignored on this declaration}}
+inline struct test3 { // expected-error {{'inline' can only appear on functions}}
int x;
};
OpenPOWER on IntegriCloud