diff options
author | John McCall <rjmccall@apple.com> | 2011-03-26 02:09:52 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-03-26 02:09:52 +0000 |
commit | 4d55f5a89362e568605f4bbb21814ee4becdb09c (patch) | |
tree | cada01619c2701279b5d07cc6248a331484d5d3f /clang/test/SemaCXX/storage-class.cpp | |
parent | 405988b97c0e8916dfedbca507f30eb8ede83112 (diff) | |
download | bcm5719-llvm-4d55f5a89362e568605f4bbb21814ee4becdb09c.tar.gz bcm5719-llvm-4d55f5a89362e568605f4bbb21814ee4becdb09c.zip |
Don't warn about the 'extern' in 'extern "C"' on a tag decl. This is
usually useless, but not always.
llvm-svn: 128326
Diffstat (limited to 'clang/test/SemaCXX/storage-class.cpp')
-rw-r--r-- | clang/test/SemaCXX/storage-class.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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 |