1 // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
2 // RUN: %clang_cc1 -triple wasm32-unknown-unknown -target-feature +reference-types -o - -emit-llvm %s | FileCheck %s
4 typedef __externref_t externref_t
;
6 void helper(externref_t
);
8 // CHECK-LABEL: @handle(
10 // CHECK-NEXT: [[OBJ_ADDR:%.*]] = alloca ptr addrspace(10), align 1
11 // CHECK-NEXT: store ptr addrspace(10) [[OBJ:%.*]], ptr [[OBJ_ADDR]], align 1
12 // CHECK-NEXT: [[TMP0:%.*]] = load ptr addrspace(10), ptr [[OBJ_ADDR]], align 1
13 // CHECK-NEXT: call void @helper(ptr addrspace(10) [[TMP0]])
14 // CHECK-NEXT: ret void
16 void handle(externref_t obj
) {