1; RUN: opt <%s -o %t0.o -thinlto-bc -thinlto-split-lto-unit 2; RUN: llvm-as -o %t1.o %S/Inputs/no-undef-type-md.ll 3; RUN: llvm-lto2 run -o %t-obj.o \ 4; RUN: %t0.o \ 5; RUN: -r=%t0.o,a, \ 6; RUN: -r=%t0.o,b,pl \ 7; RUN: %t1.o \ 8; RUN: -r=%t1.o,a,pl \ 9; RUN: | FileCheck --allow-empty --check-prefix=ERROR %s 10; RUN: llvm-nm %t-obj.o.0 %t-obj.o.1 -S | FileCheck %s 11 12; ERROR-NOT: expected a Function or null 13; ERROR-NOT: ptr undef 14 15; CHECK: -obj.o.0: 16; CHECK: -obj.o.1: 17 18; ModuleID = 'test.cpp.o' 19source_filename = "test.cpp" 20target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" 21target triple = "x86_64-unknown-linux-gnu" 22 23define i32 @a() { 24entry: 25 ret i32 0 26} 27 28define i32 @b() { 29entry: 30 ret i32 0 31} 32 33!llvm.module.flags = !{!39} 34 35!39 = !{i32 5, !"CG Profile", !40} 36!40 = !{!41} 37!41 = !{ptr @b, ptr @a, i64 2594092} 38