We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c644be1 commit e5923e0Copy full SHA for e5923e0
clang-tools-extra/clangd/unittests/tweaks/RawStringLiteralTests.cpp
@@ -40,18 +40,14 @@ TEST_F(RawStringLiteralTest, TestC) {
40
Context = File;
41
FileName = "TestTU.c";
42
ExtraArgs = {"-xc"}; // raw strings are unavailable in C
43
- EXPECT_UNAVAILABLE(R"c(
44
- const char* a = "^f^o^o^\^n^";
45
- )c");
+ EXPECT_UNAVAILABLE(R"c(const char *a = ^"^f^o^o^\^n^";)c");
46
}
47
48
TEST_F(RawStringLiteralTest, TestCpp98) {
49
50
ExtraArgs = {"-std=c++98"}; // raw strings are unavailable
51
// in versions prior to C++11
52
- EXPECT_UNAVAILABLE(R"cpp(
53
54
- )cpp");
+ EXPECT_UNAVAILABLE(R"cpp(const char *a = ^"^f^o^o^\^n^";)cpp");
55
56
57
} // namespace
0 commit comments