Files
c3c/test/test_suite/errors/simple_static_failable.c3t
Christoffer Lerno cdabe8fd9e - Create optional with ~ instead of ?. return io::EOF?; becomes return io::EOF~.
- Deprecated use of `?` to create optional.
2026-01-20 16:10:28 +01:00

21 lines
295 B
Plaintext

// #target: macos-x64
module foo;
faultdef Y;
fn void main()
{
static int? x = 120;
int? i = Y~;
}
/* #expect: foo.ll
define void @foo.main() #0 {
entry:
%i = alloca i32, align 4
%i.f = alloca i64, align 8
store i64 ptrtoint (ptr @foo.Y to i64), ptr %i.f, align 8
ret void
}