Files
c3c/test/test_suite/errors/simple_static_failable.c3t
Christoffer Lerno 5c77c9a754 - Change distinct -> typedef.
- Order of attribute declaration is changed for `alias`.
- Added `LANGUAGE_DEV_VERSION` env constant.
- Rename `anyfault` -> `fault`.
- Changed `fault` -> `faultdef`.
- Added `attrdef` instead of `alias` for attribute aliases.
2025-03-15 20:10:47 +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
}