aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor/testcases/highlightingtestcase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/cppeditor/testcases/highlightingtestcase.cpp')
-rw-r--r--src/plugins/cppeditor/testcases/highlightingtestcase.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/plugins/cppeditor/testcases/highlightingtestcase.cpp b/src/plugins/cppeditor/testcases/highlightingtestcase.cpp
index 20fa2526467..53ffcc1b55e 100644
--- a/src/plugins/cppeditor/testcases/highlightingtestcase.cpp
+++ b/src/plugins/cppeditor/testcases/highlightingtestcase.cpp
@@ -1,7 +1,7 @@
auto func()
{
return R"(foo
- foobar
+
R"notaprefix!(
barfoobar)" R"(second)" /* comment */ R"(third)";
}
@@ -25,3 +25,15 @@ template<int n = 5> class C;
struct ConversionFunction {
operator int();
};
+
+template<typename T> concept NoConstraint = true;
+
+const char16_t *operator ""_w(const char16_t *s, size_t) { return s; }
+const auto s = u"one"_w;
+const auto s2 = L"hello";
+const auto s3 = u8"hello";
+const auto s4 = U"hello";
+const auto s5 = uR"("o
+ ne")"_w;
+const auto s6 = u"o\
+ne"_w;