brintos

brintos / llvm-project-archived public Read only

0
0
Text · 642 B · 7eca072 Raw
17 lines · plain
1; Check we don't crash when linking a global variable with appending linkage2; if the types in their elements don't have a straightforward mapping, forcing3; us to use bitcasts.4 5; RUN: opt %s -o %t1.o6; RUN: opt %p/Inputs/appending-var-2.ll -o %t2.o7 8; RUN: llvm-lto2 run -o %t3.o %t1.o %t2.o -r %t1.o,bar, -r %t2.o,bar,px9 10target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"11target triple = "x86_64-unknown-linux-gnu"12 13%"foo.1" = type { i8, i8 }14declare dso_local i32 @bar(ptr nocapture readnone %this) local_unnamed_addr15 16@llvm.used = appending global [1 x ptr] [ptr @bar], section "llvm.metadata"17