summaryrefslogtreecommitdiff
path: root/tests/examplefiles/example2.cpp
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2016-02-14 15:15:04 +0100
committerGeorg Brandl <georg@python.org>2016-02-14 15:15:04 +0100
commitbe71a37c4b860a5247cf7f65ea8f3596cef11e9e (patch)
tree518bfd491c44e50b9298ea5948a460e584afe6d5 /tests/examplefiles/example2.cpp
parent1b8de7302a856a8046315758ae4ed51c775bc84f (diff)
parent6297dd482d0b0adcf8f9792da90f4543390cd154 (diff)
downloadpygments-git-be71a37c4b860a5247cf7f65ea8f3596cef11e9e.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;
+}