// #target: macos-x64
module foo;
import std::io;

faultdef ABC;

fn void? test()
{
	if ((ABC~!))
	{ }
	else
	{}
}
fn void main()
{
	(void)test();
}

/* #expect: foo.ll

define i64 @foo.test() #0 {
entry:
  %error_var = alloca i64, align 8
  store i64 ptrtoint (ptr @foo.ABC to i64), ptr %error_var, align 8
  br label %guard_block
guard_block:                                      ; preds = %entry
  %0 = load i64, ptr %error_var, align 8
  ret i64 %0
}
