blob: 285e1bcec2e8921818e2785437786105caca9520 [file] [log] [blame]
Vitaly Bukaa5376f32017-12-16 02:10:00 +00001; RUN: opt -module-summary -o %t.bc %s
2
3; RUN: rm -f %t2.0
Vitaly Bukafd563a02017-12-16 02:12:35 +00004; RUN: llvm-lto2 run %t.bc -r %t.bc,foo,pl -o %t2 -thinlto-distributed-indexes
Vitaly Bukaa5376f32017-12-16 02:10:00 +00005; RUN: llvm-readobj -h %t2.0 | FileCheck %s
Petr Hosek62f64622018-10-05 21:10:03 +00006; RUN: llvm-nm %t2.0 2>&1 | FileCheck %s -check-prefix=NO-SYMBOLS
Jordan Rupprecht53cb5732018-10-03 23:39:49 +00007; NO-SYMBOLS: no symbols
Vitaly Bukaa5376f32017-12-16 02:10:00 +00008
9; CHECK: Format: ELF64-x86-64
10
11target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
12target triple = "x86_64-unknown-linux-gnu"
13
14@foo = ifunc i32 (i32), i64 ()* @foo_ifunc
15
16define internal i64 @foo_ifunc() {
17entry:
18 ret i64 0
19}