• 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  call void bitcast (void (...)* @long_undef_name to void ()*)()
8  ret void
9}
10
11declare void @foo(...)
12declare void @long_undef_name(...)
13
14;CHECK: Symbol {
15;CHECK:   Name: .foo
16;CHECK-NEXT:   Value (RelocatableAddress): 0x0
17;CHECK-NEXT:   Section: N_UNDEF
18;CHECK-NEXT:   Type: 0x0
19;CHECK-NEXT:   StorageClass: C_EXT (0x2)
20;CHECK-NEXT:   NumberOfAuxEntries: 1
21;CHECK-NEXT:   CSECT Auxiliary Entry {
22;CHECK:          SectionLen: 0
23;CHECK-NEXT:     ParameterHashIndex: 0x0
24;CHECK-NEXT:     TypeChkSectNum: 0x0
25;CHECK-NEXT:     SymbolAlignmentLog2: 0
26;CHECK-NEXT:     SymbolType: XTY_ER (0x0)
27;CHECK-NEXT:     StorageMappingClass: XMC_PR (0x0)
28;CHECK-NEXT:     StabInfoIndex: 0x0
29;CHECK-NEXT:     StabSectNum: 0x0
30;CHECK-NEXT:   }
31;CHECK-NEXT: }
32;CHECK: Symbol {
33;CHECK:   Name: .long_undef_name
34;CHECK-NEXT:   Value (RelocatableAddress): 0x0
35;CHECK-NEXT:   Section: N_UNDEF
36;CHECK-NEXT:   Type: 0x0
37;CHECK-NEXT:   StorageClass: C_EXT (0x2)
38;CHECK-NEXT:   NumberOfAuxEntries: 1
39;CHECK-NEXT:   CSECT Auxiliary Entry {
40;CHECK:          SectionLen: 0
41;CHECK-NEXT:     ParameterHashIndex: 0x0
42;CHECK-NEXT:     TypeChkSectNum: 0x0
43;CHECK-NEXT:     SymbolAlignmentLog2: 0
44;CHECK-NEXT:     SymbolType: XTY_ER (0x0)
45;CHECK-NEXT:     StorageMappingClass: XMC_PR (0x0)
46;CHECK-NEXT:     StabInfoIndex: 0x0
47;CHECK-NEXT:     StabSectNum: 0x0
48;CHECK-NEXT:   }
49;CHECK-NEXT: }
50