mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
19 lines
252 B
Plaintext
19 lines
252 B
Plaintext
// #target: linux-x64
|
|
module scratch;
|
|
import std::test;
|
|
fn void main()
|
|
{
|
|
int x = test::abc();
|
|
}
|
|
|
|
module std::test;
|
|
|
|
macro abc()
|
|
{
|
|
const int A = 256;
|
|
return A;
|
|
}
|
|
|
|
/* #expect: scratch.ll
|
|
|
|
@main.A = internal local_unnamed_addr constant i32 256, align 4 |