mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
- 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.
21 lines
295 B
Plaintext
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
|
|
} |