aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Lexer/string-literal-errors.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-08-03 23:41:04 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-08-03 23:41:04 +0000
commit06f621d3496ed2549edcc763403a64812d35e2a0 (patch)
tree2ca2ae460a52030ab4b41a8e35a6a3b1948c0368 /clang/test/Lexer/string-literal-errors.cpp
parent065cabf43e015cbd3556989725a6a8c0cdfd3ec8 (diff)
downloadllvm-06f621d3496ed2549edcc763403a64812d35e2a0.zip
llvm-06f621d3496ed2549edcc763403a64812d35e2a0.tar.gz
llvm-06f621d3496ed2549edcc763403a64812d35e2a0.tar.bz2
Don't destroy MacroInfos if we find the macro definition is invalid; it'll get
destroyed on shutdown regardless. Fixes a double-delete. llvm-svn: 214675
Diffstat (limited to 'clang/test/Lexer/string-literal-errors.cpp')
-rw-r--r--clang/test/Lexer/string-literal-errors.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/Lexer/string-literal-errors.cpp b/clang/test/Lexer/string-literal-errors.cpp
index d8e2993..223dca4 100644
--- a/clang/test/Lexer/string-literal-errors.cpp
+++ b/clang/test/Lexer/string-literal-errors.cpp
@@ -23,3 +23,5 @@ void foo() {
// CHECK: {{^ \^~$}}
// CHECK: {{^ \^~$}}
}
+
+#define foo() lots and lots of tokens, need at least 8 to fill up the smallvector buffer #BadThingsHappenNow