summaryrefslogtreecommitdiff
path: root/test/Preprocessor/macro_raw_string.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Preprocessor/macro_raw_string.cpp')
-rw-r--r--test/Preprocessor/macro_raw_string.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Preprocessor/macro_raw_string.cpp b/test/Preprocessor/macro_raw_string.cpp
new file mode 100644
index 0000000000000..d56894888d1f8
--- /dev/null
+++ b/test/Preprocessor/macro_raw_string.cpp
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 -E -std=c++11 %s -o %t
+// RUN: %clang_cc1 %t
+
+#define FOO(str) foo(#str)
+
+extern void foo(const char *str);
+
+void bar() {
+ FOO(R"(foo
+ bar)");
+}