// #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
}