aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/1-source/backtick_in_literals_and_comments.zc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/conformance/1-source/backtick_in_literals_and_comments.zc')
-rw-r--r--tests/conformance/1-source/backtick_in_literals_and_comments.zc9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/conformance/1-source/backtick_in_literals_and_comments.zc b/tests/conformance/1-source/backtick_in_literals_and_comments.zc
new file mode 100644
index 0000000..bc21425
--- /dev/null
+++ b/tests/conformance/1-source/backtick_in_literals_and_comments.zc
@@ -0,0 +1,9 @@
+// expect: 96/96/1/
+include rt;
+void pn(int x) { rt.put_n(x); rt.put_c(10); }
+// a backtick in a line comment ` is ordinary
+/* and in a block comment ` too */
+fn main() {
+ pn('`'); pn("`"[0]); pn(1);
+ return 0;
+}