aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-04-24 16:33:32 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-04-24 16:36:05 -0700
commitd1b65c6f46ab0891db3c80db2eedbb434168aabe (patch)
tree7dd56a4baa0bd1436e20fb1ead20959e3b4fa963 /test
parent3886fdc19b624e6fa47dcd02b627548bc7a7ada0 (diff)
downloadzig-d1b65c6f46ab0891db3c80db2eedbb434168aabe.tar.gz
zig-d1b65c6f46ab0891db3c80db2eedbb434168aabe.zip
fix ability to parse character literals
Diffstat (limited to 'test')
-rw-r--r--test/self_hosted.zig6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/self_hosted.zig b/test/self_hosted.zig
index b136279bd3..610e9c755c 100644
--- a/test/self_hosted.zig
+++ b/test/self_hosted.zig
@@ -1333,3 +1333,9 @@ fn pointer_comparison() {
fn ptr_eql(a: &[]u8, b: &[]u8) -> bool {
a == b
}
+
+#attribute("test")
+fn character_literals() {
+ assert('\'' == single_quote);
+}
+const single_quote = '\'';