1 ; RUN: llc < %s --mtriple=wasm32-unknown-unknown -asm-verbose=false -mattr=+reference-types | FileCheck %s
2 ; Verify that types are output for external symbols, even in the absence of any defined functions
4 ; CHECK: .type foo,@object
5 ; CHECK-NEXT: .section .data.foo,"",@
6 ; CHECK-NEXT: .globl foo
7 @foo = local_unnamed_addr global ptr @bar, align 4
10 ; CHECK-NEXT: .int32 bar
11 ; CHECK-NEXT: .size foo, 4
13 ; CHECK: .functype bar (i32) -> (i32)
14 declare i32 @bar(i32 noundef)