mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +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.
12 lines
237 B
Plaintext
12 lines
237 B
Plaintext
// #target: macos-x64
|
|
module test;
|
|
const int FOO @private = 4;
|
|
attrdef @Align(x) = @align(x * FOO);
|
|
|
|
module test2;
|
|
import test;
|
|
int black @Align(16) = 123;
|
|
|
|
/* #expect: test2.ll
|
|
|
|
@test2.black = local_unnamed_addr global i32 123, align 64 |