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 | 379246d29b1c7ef2659beadf41b4cb79806c0e63 (patch) | |
tree | b9754474f0d84c0e89a3e63db1965f5207c6ce8b /test/SemaCXX/storage-class.cpp | |
parent | 7da19ea50d4161fcda40d135735bcf450cabeb50 (diff) |
Don't warn about the 'extern' in 'extern "C"' on a tag decl. This is
usually useless, but not always.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128326 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/storage-class.cpp')
-rw-r--r-- | test/SemaCXX/storage-class.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/SemaCXX/storage-class.cpp b/test/SemaCXX/storage-class.cpp index a2e206323a..01cfbfc51f 100644 --- a/test/SemaCXX/storage-class.cpp +++ b/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 |