aboutsummaryrefslogtreecommitdiff
path: root/l/opttest.lang
diff options
context:
space:
mode:
Diffstat (limited to 'l/opttest.lang')
-rw-r--r--l/opttest.lang8
1 files changed, 8 insertions, 0 deletions
diff --git a/l/opttest.lang b/l/opttest.lang
new file mode 100644
index 0000000..9f87e78
--- /dev/null
+++ b/l/opttest.lang
@@ -0,0 +1,8 @@
+func int main() {
+ int a := 1;
+ int b := 2;
+ int x := a + b;
+ b = 100;
+ putint(x); putc('\n');
+ return 0;
+}