Mercurial > hg > CbC > CbC_llvm
view test/Linker/funcimport_appending_global.ll @ 146:3fc4d5c3e21e
set tail call flag for code segment in CGCAll
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 23 Dec 2018 19:23:36 +0900 |
parents | 1172e4bd9c6f |
children |
line wrap: on
line source
; RUN: opt -module-summary %s -o %t.bc ; RUN: opt -module-summary %p/Inputs/funcimport_appending_global.ll -o %t2.bc ; RUN: llvm-lto -thinlto -o %t3 %t.bc %t2.bc ; Do the import now ; RUN: llvm-link %t.bc -summary-index=%t3.thinlto.bc -import=foo:%t2.bc -S | FileCheck %s ; Ensure that global constructor (appending linkage) is not imported ; CHECK-NOT: @llvm.global_ctors = {{.*}}@foo declare void @f() @llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @f, i8* null}] define i32 @main() { entry: call void @foo() ret i32 0 } declare void @foo()