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

22 lines
350 B
Plaintext

// #target: macos-x64
module test;
constdef Foo : inline String
{
HELO = "Helo"
}
fn int main()
{
Foo f = Foo.HELO;
bool b = $defined(String s = Foo.HELO);
bool c = $defined(String s = f);
bool d = $defined(int i = f);
return 0;
}
/* #expect: test.ll
store i8 1, ptr %b, align 1
store i8 1, ptr %c, align 1
store i8 0, ptr %d, align 1