aboutsummaryrefslogtreecommitdiff
path: root/code
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-12-22 23:06:31 +0000
committerGinger Bill <bill@gingerbill.org>2016-12-22 23:06:31 +0000
commitd714bece47ea058e482389452cd428dad9c28fd0 (patch)
tree5e4291d573e6f3d83f606bdf9d444d48ff7d943c /code
parent923b039cf6e7b306f42c5319d66f0a382378935f (diff)
Handle calling conventions correctly
Diffstat (limited to 'code')
-rw-r--r--code/demo.odin17
1 files changed, 6 insertions, 11 deletions
diff --git a/code/demo.odin b/code/demo.odin
index f93c1575b..897a5a878 100644
--- a/code/demo.odin
+++ b/code/demo.odin
@@ -1,4 +1,4 @@
-import (
+import {
"atomic.odin";
"fmt.odin";
"hash.odin";
@@ -8,17 +8,12 @@ import (
"os.odin";
"sync.odin";
"utf8.odin";
-)
+ win32 "sys/windows.odin";
+}
proc main() {
- var x = proc() -> int {
- proc print_here() {
- fmt.println("Here");
- }
-
- print_here();
- return 1;
- };
- fmt.println(x());
+ var x = ~(0 as u32);
+ var y = x << 32;
+ fmt.println(y);
}