• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -mtriple powerpc-ibm-aix-xcoff -filetype=obj -o %t.o < %s
2; RUN: llvm-readobj  --symbols %t.o | FileCheck %s
3
4define void @bar() {
5entry:
6  call void bitcast (void (...)* @foo to void ()*)()
7  ret void
8}
9
10declare extern_weak void @foo(...)
11
12;CHECK: Symbol {
13;CHECK:   Name: .foo
14;CHECK-NEXT:   Value (RelocatableAddress): 0x0
15;CHECK-NEXT:   Section: N_UNDEF
16;CHECK-NEXT:   Type: 0x0
17;CHECK-NEXT:   StorageClass: C_WEAKEXT (0x6F)
18;CHECK-NEXT:   NumberOfAuxEntries: 1
19;CHECK-NEXT:   CSECT Auxiliary Entry {
20;CHECK:          SectionLen: 0
21;CHECK-NEXT:     ParameterHashIndex: 0x0
22;CHECK-NEXT:     TypeChkSectNum: 0x0
23;CHECK-NEXT:     SymbolAlignmentLog2: 0
24;CHECK-NEXT:     SymbolType: XTY_ER (0x0)
25;CHECK-NEXT:     StorageMappingClass: XMC_PR (0x0)
26;CHECK-NEXT:     StabInfoIndex: 0x0
27;CHECK-NEXT:     StabSectNum: 0x0
28;CHECK-NEXT:   }
29;CHECK-NEXT: }
30
31