1 ; RUN: llvm-as %s -o %t.o
2 ; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \
4 ; RUN: -shared %t.o -o %t2
5 ; RUN: llvm-nm %t2 | FileCheck %s
8 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
9 target triple = "x86_64-unknown-linux-gnu"
11 @main.L = internal unnamed_addr constant [3 x i8*] [i8* blockaddress(@main, %L1), i8* blockaddress(@main, %L2), i8* null], align 16
13 define i32 @main() #0 {
17 L1: ; preds = %entry, %L1
18 %i.0 = phi i32 [ 0, %entry ], [ %inc, %L1 ]
19 %inc = add i32 %i.0, 1
20 %idxprom = zext i32 %i.0 to i64
21 %arrayidx = getelementptr inbounds [3 x i8*], [3 x i8*]* @main.L, i64 0, i64 %idxprom
22 %0 = load i8*, i8** %arrayidx, align 8, !tbaa !1
23 indirectbr i8* %0, [label %L1, label %L2]
30 !2 = !{!"any pointer", !3, i64 0}
31 !3 = !{!"omnipotent char", !4, i64 0}
32 !4 = !{!"Simple C/C++ TBAA"}