(module main)

(import_c c_add ((lhs i32) (rhs i32)) -> i32)

(fn add_42 () -> i32
  (unsafe
    (c_add 40 2)))

(fn main () -> i32
  (add_42))

(test "C import test runner diagnostic"
  (= (unsafe
       (c_add 1 2))
     3))
