Files
c3c/test/test_suite/compile_time/ct_cast_example.c3t
Christoffer Lerno 25bccf4883 New faults and syntax (#2034)
- Remove `[?]` syntax.
- Change `int!` to `int?` syntax.
- New `fault` declarations.
- Enum associated values can reference the calling enum.
2025-03-10 00:11:35 +01:00

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