aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Lex/LexerTest.cpp
diff options
context:
space:
mode:
authorKadir Cetinkaya <kadircet@google.com>2022-10-05 10:37:12 +0200
committerKadir Cetinkaya <kadircet@google.com>2022-10-05 10:37:32 +0200
commitfeea7ef23cb1bef92d363cc613052f8f3a878fc2 (patch)
tree1db89112b8c1e1a179038a3467d17c2d099b80e1 /clang/unittests/Lex/LexerTest.cpp
parent2813bc5d247cf842de768ac2b8b92bdb2771e2c6 (diff)
downloadllvm-feea7ef23cb1bef92d363cc613052f8f3a878fc2.zip
llvm-feea7ef23cb1bef92d363cc613052f8f3a878fc2.tar.gz
llvm-feea7ef23cb1bef92d363cc613052f8f3a878fc2.tar.bz2
Revert "[clang][Lex] Fix a crash on malformed string literals"
This reverts commit 36a200208facf58d454c9b7253c956c2f2a8b946.
Diffstat (limited to 'clang/unittests/Lex/LexerTest.cpp')
-rw-r--r--clang/unittests/Lex/LexerTest.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/clang/unittests/Lex/LexerTest.cpp b/clang/unittests/Lex/LexerTest.cpp
index aefe5f1..0ad644c 100644
--- a/clang/unittests/Lex/LexerTest.cpp
+++ b/clang/unittests/Lex/LexerTest.cpp
@@ -18,7 +18,6 @@
#include "clang/Basic/TokenKinds.h"
#include "clang/Lex/HeaderSearch.h"
#include "clang/Lex/HeaderSearchOptions.h"
-#include "clang/Lex/LiteralSupport.h"
#include "clang/Lex/MacroArgs.h"
#include "clang/Lex/MacroInfo.h"
#include "clang/Lex/ModuleLoader.h"
@@ -660,11 +659,4 @@ TEST_F(LexerTest, RawAndNormalLexSameForLineComments) {
}
EXPECT_TRUE(ToksView.empty());
}
-
-TEST_F(LexerTest, BrokenStringLiteral) {
- const llvm::StringLiteral Source = R"cpp("\N")cpp";
- // Make sure this isn't crashing.
- StringLiteralParser P(Lex(Source), *PP);
- EXPECT_TRUE(P.hadError);
-}
} // anonymous namespace