aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/1-source
diff options
context:
space:
mode:
authorGravatar zinc <zinc@downsta.ir> 2026-10-14 16:08:50 +0330
committerGravatar zinc <zinc@downsta.ir> 2026-10-14 16:08:50 +0330
commit0b7a396cc5375afdeea1716126f8dd1a0efea870 (patch)
tree495135b43eab0e683910f996ee379bf3b868f716 /tests/conformance/1-source
parentclosures: allow 24 parameters, like functions (was 19) (diff)
unary: u*x, m*x, d*x are not recasts when the tag names a global variable either
Diffstat (limited to 'tests/conformance/1-source')
-rw-r--r--tests/conformance/1-source/ident_tags_global_glued_star.zc8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/conformance/1-source/ident_tags_global_glued_star.zc b/tests/conformance/1-source/ident_tags_global_glued_star.zc
new file mode 100644
index 0000000..516f9a3
--- /dev/null
+++ b/tests/conformance/1-source/ident_tags_global_glued_star.zc
@@ -0,0 +1,8 @@
+// expect: 12/10/
+// spec 1.6.3: u*x and m*x are not recasts when u or m is a visible global variable
+include rt;
+void pn(int x) { rt.put_n(x); rt.put_c(10); }
+int u = 3;
+int m = 5;
+fn main() { int d = 4; int k = 2; pn(u*d); pn(m*k); return 0; }
+// zc0: skip