You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
421 B
10 lines
421 B
4 months ago
|
; RUN: opt -module-summary %s -o %t.bc
|
||
|
; RUN: llvm-lto -thinlto-action=thinlink -o %t2.bc %t.bc
|
||
|
|
||
|
; RUN: llvm-lto -thinlto-action=promote %t.bc -thinlto-index=%t2.bc -exported-symbol=foo -o - | llvm-lto -thinlto-action=internalize -thinlto-module-id=%t.bc - -thinlto-index=%t2.bc -exported-symbol=foo -o - | llvm-dis -o - | FileCheck %s
|
||
|
|
||
|
; CHECK: define weak_odr void @foo()
|
||
|
define linkonce_odr void @foo() {
|
||
|
ret void
|
||
|
}
|