1 ; RUN: llc --mtriple=wasm32-unknown-unknown -asm-verbose=false -mattr=+reference-types < %s | FileCheck %s
3 %externref = type ptr addrspace(10) ;; addrspace 10 is nonintegral
5 @externref_global = local_unnamed_addr addrspace(1) global %externref undef
7 define void @set_externref_global(%externref %g) {
8 ;; this generates a global.set of @externref.global
9 store %externref %g, ptr addrspace(1) @externref_global
13 ; CHECK-LABEL: set_externref_global:
14 ; CHECK-NEXT: functype set_externref_global (externref) -> ()
15 ; CHECK-NEXT: local.get 0
16 ; CHECK-NEXT: global.set externref_global
17 ; CHECK-NEXT: end_function
19 ; CHECK: .globl externref_global