• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt -module-summary %s -o %t.bc
2; RUN: opt -module-summary %p/Inputs/funcimport.ll -o %t2.bc
3
4; Verify that enabling caching is working
5; RUN: rm -Rf %t.cache && mkdir %t.cache
6; RUN: llvm-lto -thinlto-action=run -exported-symbol=globalfunc %t2.bc  %t.bc -thinlto-cache-dir %t.cache
7; RUN: ls %t.cache/llvmcache.timestamp
8; RUN: ls %t.cache | count 3
9
10target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
11target triple = "x86_64-apple-macosx10.11.0"
12
13define void @globalfunc() #0 {
14entry:
15  ret void
16}
17