// #target: macos-x64

struct Test
{
    int x;
}

Test foo = {};

extern fn void blorg(Test t);

fn Test creator()
{
    blorg((Test){});
    return (Test){};
}

/* #expect: literal_load.ll

define i32 @literal_load.creator() #0 {
entry:
  %literal = alloca %Test, align 4
  %literal1 = alloca %Test, align 4
  store i32 0, ptr %literal, align 4
  %0 = load i32, ptr %literal, align 4
  call void @blorg(i32 %0)
  store i32 0, ptr %literal1, align 4
  %1 = load i32, ptr %literal1, align 4
  ret i32 %1
}