From d714bece47ea058e482389452cd428dad9c28fd0 Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Thu, 22 Dec 2016 23:06:31 +0000 Subject: Handle calling conventions correctly --- code/demo.odin | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'code') 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); } -- cgit v1.2.3