Files
c3c/test/test_suite/define/alias_alias.c3t
Christoffer Lerno 8c741c617c Variable aliases of aliases would not resolve correctly. #2131
Variable aliases could not be assigned to.
2025-05-15 09:36:16 +02:00

22 lines
246 B
Plaintext

// #target: macos-x64
module test;
int x = 0;
alias y = x;
alias z = y;
alias w = z;
fn int main()
{
z = 4;
w = 3;
return 0;
}
/* #expect: test.ll
entry:
store i32 4, ptr @test.x, align 4
store i32 3, ptr @test.x, align 4
ret i32 0
}