summaryrefslogtreecommitdiff
path: root/tests/examplefiles/example2.cpp
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2016-02-26 10:09:18 +0100
committerGeorg Brandl <georg@python.org>2016-02-26 10:09:18 +0100
commit1e3fa4bde6827107e7f5d6a3f38f57c51618ba82 (patch)
tree1ea6d3e16393aa41f2e647c09d6f979d34cc79da /tests/examplefiles/example2.cpp
parentd75dd4a9501658a05db7475b4b6d5800a1a92700 (diff)
parent4611730d0ca3cc6baad598f1802759bbf5bcad38 (diff)
downloadpygments-git-1e3fa4bde6827107e7f5d6a3f38f57c51618ba82.tar.gz
merge with stable
Diffstat (limited to 'tests/examplefiles/example2.cpp')
-rw-r--r--tests/examplefiles/example2.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/examplefiles/example2.cpp b/tests/examplefiles/example2.cpp
new file mode 100644
index 00000000..ccd99383
--- /dev/null
+++ b/tests/examplefiles/example2.cpp
@@ -0,0 +1,20 @@
+/*
+ * A Test file for the different string literals.
+ */
+
+#include <iostream>
+
+int main() {
+ char *_str = "a normal string";
+ wchar_t *L_str = L"a wide string";
+ char *u8_str = u8"utf-8 string";
+ char16_t *u_str = u"utf-16 string";
+ char32_t *U_str = U"utf-32 string";
+ char *R_str = R""""(raw string with
+"""
+as a delimiter)"""";
+
+ std::cout << R_str << std::endl;
+
+ return 0;
+}