diff options
author | Bad Diode <bd@badd10de.dev> | 2024-06-28 19:56:20 +0200 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2024-06-28 19:56:20 +0200 |
commit | 7007afc2c4532326fa3bc32f70b7ad080c880925 (patch) | |
tree | cfc0eb8b4d036cf4982a974e0e58b32143fa480a /tests | |
parent | 2c22f17074581adfcda4cea9a419add082e6029c (diff) | |
download | bdl-7007afc2c4532326fa3bc32f70b7ad080c880925.tar.gz bdl-7007afc2c4532326fa3bc32f70b7ad080c880925.zip |
Add LDVAR to compilation and vm
Diffstat (limited to 'tests')
-rw-r--r-- | tests/compilation.bad | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/compilation.bad b/tests/compilation.bad index 120c020..0ffbb06 100644 --- a/tests/compilation.bad +++ b/tests/compilation.bad | |||
@@ -1,8 +1,11 @@ | |||
1 | let b = 8 | ||
1 | let a = 8 | 2 | let a = 8 |
2 | { | 3 | ; { |
3 | let a = 1 + 2 * 4 | 4 | ; let a = 1 + 2 * 4 |
4 | let b = 3.0 | 5 | ; let b = 3.0 |
5 | } | 6 | ; } |
7 | |||
8 | 1 + a | ||
6 | ; 0xf | 0xf0 | 9 | ; 0xf | 0xf0 |
7 | ; 0xf & 0xff | 10 | ; 0xf & 0xff |
8 | ; 0x1 << 2 | 11 | ; 0x1 << 2 |