blob: 5e5b94cc94b465a4d45e93caebab7d634c99dc9e [file] [log] [blame]
Peter Collingbourneb4edfb92018-02-05 17:17:51 +00001; Tests whether the cache is sensitive to the dso-local bit on referenced
2; globals.
3; RUN: rm -rf %t.cache
4; RUN: opt -module-hash -module-summary -o %t.bc %s
5; RUN: llvm-lto2 run -o %t.o %t.bc -cache-dir %t.cache \
6; RUN: -r %t.bc,foo,px \
7; RUN: -r %t.bc,bar,px
8; RUN: llvm-lto2 run -o %t.o %t.bc -cache-dir %t.cache \
9; RUN: -r %t.bc,foo,plx \
10; RUN: -r %t.bc,bar,px
11; RUN: ls %t.cache | count 2
12
13target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
14target triple = "x86_64-unknown-linux-gnu"
15
16define weak void @foo() {
17 ret void
18}
19
20define weak void()* @bar() {
21 ret void()* @foo
22}