aboutsummaryrefslogtreecommitdiff
path: root/opttest.lang
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-09-02 15:46:42 +0200
committertomsmeding <tom.smeding@gmail.com>2017-09-02 15:51:07 +0200
commit45e9991a1f83974c3459037f4791d865f5b342f1 (patch)
tree0ca233c3e9a8c8e38472ea0b6bc8b115e39c9c86 /opttest.lang
parent35b17357b5b55e73c6bbc59e7dae094412b7b02a (diff)
Proper struct assignment and optimisations
Diffstat (limited to 'opttest.lang')
-rw-r--r--opttest.lang8
1 files changed, 8 insertions, 0 deletions
diff --git a/opttest.lang b/opttest.lang
new file mode 100644
index 0000000..9f87e78
--- /dev/null
+++ b/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;
+}