aboutsummaryrefslogtreecommitdiff
path: root/code
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-03-12 16:42:51 +0000
committerGinger Bill <bill@gingerbill.org>2017-03-12 16:42:51 +0000
commitaaec8bf423a40f887d43d12403c2e40f187d424c (patch)
tree98958a8c7db53197a0176fcc7607bdcad0a4d8c3 /code
parent0fcbda951aea462248304a7e16f5c4eb9da9939d (diff)
windows.odin TYPE_NAME to Type_Name; More SSA work and SSA printing for debugging
Diffstat (limited to 'code')
-rw-r--r--code/demo.odin15
1 files changed, 8 insertions, 7 deletions
diff --git a/code/demo.odin b/code/demo.odin
index 305638d52..5241e29ce 100644
--- a/code/demo.odin
+++ b/code/demo.odin
@@ -7,17 +7,18 @@
#import "os.odin";
#import "strconv.odin";
#import "sync.odin";
+#import win32 "sys/windows.odin";
main :: proc() {
- a: i8 = -1;
- fmt.println(a, cast(u64)a, cast(i64)a);
- b: i64 = -1;
- fmt.println(b, cast(u64)b, cast(i64)b);
+ a := 1;
+ b := 2;
+ c := a + b;
+
+ if c > 0 {
+ c = 0;
+ }
when false {
- s := new_slice(int, 0, 10);
- append(s, 1, 2, 6, 3, 6, 5, 5, 5, 5, 1, 2);
- fmt.println(s);
/*
Version 0.1.1