1 ; RUN: llc < %s --mtriple=wasm32-unknown-unknown -asm-verbose=false -mattr=+reference-types | FileCheck %s
4 %externref = type %extern addrspace(10)* ;; addrspace 10 is nonintegral
6 @externref_global = local_unnamed_addr addrspace(1) global %externref undef
8 define %extern @return_extern_undef() {
9 ; Returning a ref.null or an uninitialized externref would make
10 ; more sense if the return type would be %externref. However, in
11 ; this case this is an %extern value, which really is an opaque
12 ; type and should never really happen.
16 ; CHECK-LABEL: return_extern_undef:
17 ; CHECK-NEXT: functype return_extern_undef () -> ()
18 ; CHECK-NEXT: end_function
20 ; CHECK: .globl externref_global