Mehdi Amini | ab4a8b6 | 2016-05-14 05:16:41 +0000 | [diff] [blame] | 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 | |
| 10 | target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" |
| 11 | target triple = "x86_64-apple-macosx10.11.0" |
| 12 | |
| 13 | define void @globalfunc() #0 { |
| 14 | entry: |
| 15 | ret void |
| 16 | } |