diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2012-02-04 00:54:05 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2012-02-04 00:54:05 +0000 |
commit | 130bbd0302112013dd831a56f8bdacfcf7064d48 (patch) | |
tree | 9e4c78a84d38cab7a6d473d78fa1befeef5f8f4d /clang/test/SemaCXX/undefined-internal.cpp | |
parent | 6d68c7cf79f5688d0ccd52c5060273d22d81d8a4 (diff) | |
download | bcm5719-llvm-130bbd0302112013dd831a56f8bdacfcf7064d48.tar.gz bcm5719-llvm-130bbd0302112013dd831a56f8bdacfcf7064d48.zip |
Suppress the used-but-not-defined warning for static data members while I look into a rather nasty bug in the new odr-use marking code.
llvm-svn: 149731
Diffstat (limited to 'clang/test/SemaCXX/undefined-internal.cpp')
-rw-r--r-- | clang/test/SemaCXX/undefined-internal.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/clang/test/SemaCXX/undefined-internal.cpp b/clang/test/SemaCXX/undefined-internal.cpp index 6fe64b8ceda..a253020b8ef 100644 --- a/clang/test/SemaCXX/undefined-internal.cpp +++ b/clang/test/SemaCXX/undefined-internal.cpp @@ -134,12 +134,15 @@ namespace cxx11_odr_rules { // // Note that the warning in question can trigger in cases some people would // consider false positives; hopefully that happens rarely in practice. + // + // FIXME: Suppressing this test while I figure out how to fix a bug in the + // odr-use marking code. namespace { struct A { static const int unused = 10; - static const int used1 = 20; // expected-warning {{internal linkage}} - static const int used2 = 20; // expected-warning {{internal linkage}} + static const int used1 = 20; // xpected-warning {{internal linkage}} + static const int used2 = 20; // xpected-warning {{internal linkage}} virtual ~A() {} }; } @@ -160,10 +163,10 @@ namespace cxx11_odr_rules { // Check that the checks work with unevaluated contexts (void)sizeof(p(A::used1)); - (void)typeid(p(A::used1)); // expected-note {{used here}} + (void)typeid(p(A::used1)); // xpected-note {{used here}} // Misc other testing - a(A::unused, 1 ? A::used2 : A::used2); // expected-note {{used here}} + a(A::unused, 1 ? A::used2 : A::used2); // xpected-note {{used here}} b(); } } |