1 ; RUN: llc -filetype=obj %s -o - | llvm-readobj --symbols | FileCheck %s
3 target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
4 target triple = "wasm32-unknown-unknown-wasm"
6 @foo = alias i8, bitcast (i8* ()* @func to i8*)
7 @bar = alias i8* (), i8* ()* @func
8 @bar2 = alias i8* (), i8* ()* @bar
16 ; CHECK-NEXT: Symbol {
17 ; CHECK-NEXT: Name: func
18 ; CHECK-NEXT: Type: FUNCTION (0x0)
19 ; CHECK-NEXT: Flags [ (0x0)
21 ; CHECK-NEXT: ElementIndex: 0x0
23 ; CHECK-NEXT: Symbol {
24 ; CHECK-NEXT: Name: bar2
25 ; CHECK-NEXT: Type: FUNCTION (0x0)
26 ; CHECK-NEXT: Flags [ (0x0)
28 ; CHECK-NEXT: ElementIndex: 0x0
30 ; CHECK-NEXT: Symbol {
31 ; CHECK-NEXT: Name: foo
32 ; CHECK-NEXT: Type: FUNCTION (0x0)
33 ; CHECK-NEXT: Flags [ (0x0)
35 ; CHECK-NEXT: ElementIndex: 0x0
37 ; CHECK-NEXT: Symbol {
38 ; CHECK-NEXT: Name: bar
39 ; CHECK-NEXT: Type: FUNCTION (0x0)
40 ; CHECK-NEXT: Flags [ (0x0)
42 ; CHECK-NEXT: ElementIndex: 0x0