Files
c3c/test/test_suite/compile_time/ct_vaexpr_assign.c3t

24 lines
265 B
Plaintext

// #target: macos-x64
module test;
import std;
macro foo(...)
{
$vaexpr[0] = 2;
}
fn void main()
{
int $x;
foo($x);
int y = $x;
}
/* #expect: test.ll
define void @test.main() #0 {
entry:
%y = alloca i32, align 4
store i32 2, ptr %y, align 4
ret void
}