diff options
author | Ed Schouten <ed@nuxi.nl> | 2016-12-23 19:20:07 +0000 |
---|---|---|
committer | Ed Schouten <ed@nuxi.nl> | 2016-12-23 19:20:07 +0000 |
commit | c62002fb1677ea96ee95b4810106f15d0e7209e9 (patch) | |
tree | 2ecbbba77324062f49c687295b9da427c978430a /clang/test/SemaCXX/warn-missing-variable-declarations.cpp | |
parent | 94f86ad4e098385f92971b62dd780a24ff5404c2 (diff) | |
download | bcm5719-llvm-c62002fb1677ea96ee95b4810106f15d0e7209e9.tar.gz bcm5719-llvm-c62002fb1677ea96ee95b4810106f15d0e7209e9.zip |
Extend the tests for -Wmissing-variable-declarations.
We shouldn't throw a warning when the static keyword is not present in
an anonymous namespace, just like we do for -Wmissing-prototypes.
llvm-svn: 290443
Diffstat (limited to 'clang/test/SemaCXX/warn-missing-variable-declarations.cpp')
-rw-r--r-- | clang/test/SemaCXX/warn-missing-variable-declarations.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/warn-missing-variable-declarations.cpp b/clang/test/SemaCXX/warn-missing-variable-declarations.cpp index ad23e0429bb..5b882845f3c 100644 --- a/clang/test/SemaCXX/warn-missing-variable-declarations.cpp +++ b/clang/test/SemaCXX/warn-missing-variable-declarations.cpp @@ -47,3 +47,8 @@ class C { static int x = 0; // no-warn } }; + +// There is also no need to use static in anonymous namespaces. +namespace { + int vgood4; +} |