aboutsummaryrefslogtreecommitdiff
path: root/test/run_tests.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-02-06 21:44:22 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-02-06 21:44:22 -0700
commitf19fa590e550975fcd821338923785335c9f393a (patch)
tree171f28f151e922a092fc9347935e5b73715c599e /test/run_tests.cpp
parent4c8f26e9f68367f18a19852d468e514e41f1e0d2 (diff)
downloadzig-f19fa590e550975fcd821338923785335c9f393a.tar.gz
zig-f19fa590e550975fcd821338923785335c9f393a.zip
parseh understands simple string literal macros
Diffstat (limited to 'test/run_tests.cpp')
-rw-r--r--test/run_tests.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/run_tests.cpp b/test/run_tests.cpp
index bc3dcefeed..4d9de75bfa 100644
--- a/test/run_tests.cpp
+++ b/test/run_tests.cpp
@@ -2185,6 +2185,11 @@ extern void (*fn_ptr)(void);
R"SOURCE(pub inline fn foo() {
(??fn_ptr)()
})SOURCE");
+
+
+ add_parseh_case("#define string", R"SOURCE(
+#define foo "a string"
+ )SOURCE", 1, "pub const foo = c\"a string\";");
}
static void run_self_hosted_test(void) {