aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/4-statements/o3_single_variable.zc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/conformance/4-statements/o3_single_variable.zc')
-rw-r--r--tests/conformance/4-statements/o3_single_variable.zc6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/conformance/4-statements/o3_single_variable.zc b/tests/conformance/4-statements/o3_single_variable.zc
new file mode 100644
index 0000000..3deca8d
--- /dev/null
+++ b/tests/conformance/4-statements/o3_single_variable.zc
@@ -0,0 +1,6 @@
+// expect: 7/
+// spec 4.10.1: o3 T x = e; marks one variable
+include rt;
+void pn(int x) { rt.put_n(x); rt.put_c(10); }
+fn main() { o3 int x = 7; pn(x); return 0; }
+// zc0: skip