Files
c3c/test/test_suite/enumerations/const_enum_vector.c3t
Christoffer Lerno 5a82f672b5 Update to constdef
2026-02-20 01:13:20 +01:00

23 lines
334 B
Plaintext

// #target: macos-x64
module test;
import std;
constdef Color : char[<4>]
{
LIGHTGRAY = { 200, 200, 200, 255 },
}
fn int main()
{
Color c = LIGHTGRAY;
return 0;
}
/* #expect: test.ll
define i32 @main() #0 {
entry:
%c = alloca <4 x i8>, align 4
store <4 x i8> <i8 -56, i8 -56, i8 -56, i8 -1>, ptr %c, align 4
ret i32 0
}