diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2014-07-08 16:42:54 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2014-07-08 16:42:54 +0000 |
commit | a054343415ab516a98ae9fa4fc4fe4fb4fdb14ff (patch) | |
tree | 044ca0576334cf260a330963e19e4680afd7e348 /clang-tools-extra/test/clang-tidy/llvm-twine-local.cpp | |
parent | 9189e034f172b2c9280046de2d10c2d9e209f16f (diff) | |
download | bcm5719-llvm-a054343415ab516a98ae9fa4fc4fe4fb4fdb14ff.tar.gz bcm5719-llvm-a054343415ab516a98ae9fa4fc4fe4fb4fdb14ff.zip |
As funny as it might look, this wasn't what I intended to test.
llvm-svn: 212549
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/llvm-twine-local.cpp')
-rw-r--r-- | clang-tools-extra/test/clang-tidy/llvm-twine-local.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang-tools-extra/test/clang-tidy/llvm-twine-local.cpp b/clang-tools-extra/test/clang-tidy/llvm-twine-local.cpp index dc8f8f0cb07..4794b72cb9c 100644 --- a/clang-tools-extra/test/clang-tidy/llvm-twine-local.cpp +++ b/clang-tools-extra/test/clang-tidy/llvm-twine-local.cpp @@ -15,19 +15,19 @@ using namespace llvm; void foo(const Twine &x); static Twine Moo = Twine("bark") + "bah"; -// CHECK-MASSAGES: twine variables are prone to use-after-free bugs +// CHECK-MESSAGES: twine variables are prone to use-after-free bugs // CHECK-MESSAGES: note: FIX-IT applied suggested code changes // CHECK: static std::string Moo = (Twine("bark") + "bah").str(); int main() { const Twine t = Twine("a") + "b" + Twine(42); -// CHECK-MASSAGES: twine variables are prone to use-after-free bugs +// CHECK-MESSAGES: twine variables are prone to use-after-free bugs // CHECK-MESSAGES: note: FIX-IT applied suggested code changes // CHECK: std::string t = (Twine("a") + "b" + Twine(42)).str(); foo(Twine("a") + "b"); Twine Prefix = false ? "__INT_FAST" : "__UINT_FAST"; -// CHECK-MASSAGES: twine variables are prone to use-after-free bugs +// CHECK-MESSAGES: twine variables are prone to use-after-free bugs // CHECK-MESSAGES: note: FIX-IT applied suggested code changes // CHECK: const char * Prefix = false ? "__INT_FAST" : "__UINT_FAST"; } |