From 4d55f5a89362e568605f4bbb21814ee4becdb09c Mon Sep 17 00:00:00 2001 From: John McCall Date: Sat, 26 Mar 2011 02:09:52 +0000 Subject: Don't warn about the 'extern' in 'extern "C"' on a tag decl. This is usually useless, but not always. llvm-svn: 128326 --- clang/test/SemaCXX/storage-class.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'clang/test') diff --git a/clang/test/SemaCXX/storage-class.cpp b/clang/test/SemaCXX/storage-class.cpp index a2e206323a0..01cfbfc51fa 100644 --- a/clang/test/SemaCXX/storage-class.cpp +++ b/clang/test/SemaCXX/storage-class.cpp @@ -2,3 +2,6 @@ extern const int PR6495a = 42; extern int PR6495b = 42; // expected-warning{{'extern' variable has an initializer}} extern const int PR6495c[] = {42,43,44}; + +extern struct Test1 {}; // expected-warning {{'extern' ignored on this declaration}} +extern "C" struct Test0 {}; // no warning -- cgit v1.2.3