mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
23 lines
326 B
C
23 lines
326 B
C
// #target: macos-x64
|
|
|
|
enum HelloEnum
|
|
{
|
|
HELLO,
|
|
WORLD,
|
|
ELLOWORLD,
|
|
}
|
|
fn void test()
|
|
{
|
|
HelloEnum h = WORLD;
|
|
h = ELLOWORLD;
|
|
}
|
|
|
|
/* #expect: simple_inference.ll
|
|
|
|
define void @simple_inference.test() #0 {
|
|
entry:
|
|
%h = alloca i32, align 4
|
|
store i32 1, ptr %h, align 4
|
|
store i32 2, ptr %h, align 4
|
|
ret void
|
|
}
|