mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
- Remove `[?]` syntax. - Change `int!` to `int?` syntax. - New `fault` declarations. - Enum associated values can reference the calling enum.
15 lines
237 B
Plaintext
15 lines
237 B
Plaintext
// #target: macos-x64
|
|
module test;
|
|
import std;
|
|
|
|
fn void main()
|
|
{
|
|
var $x = { 1, 2 };
|
|
$x = $x +++ 333;
|
|
io::printn((int[*])$x);
|
|
}
|
|
|
|
/* #expect: test.ll
|
|
|
|
@.__const = private unnamed_addr constant [3 x i32] [i32 1, i32 2, i32 333], align 4
|