From b1402ae94eb7ca0f52b358aaf8eae13247114bf7 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Mon, 18 Mar 2013 22:52:47 +0000 Subject: 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 --- clang/test/Sema/struct-decl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/test/Sema/struct-decl.c') 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; }; -- cgit v1.2.3