1*9880d681SAndroid Build Coastguard Worker; RUN: llvm-as -o %t.bc %s 2*9880d681SAndroid Build Coastguard Worker; RUN: llvm-lto -exported-symbol=foo -exported-symbol=bar -j2 -o %t.o %t.bc 3*9880d681SAndroid Build Coastguard Worker; RUN: llvm-nm %t.o.0 | FileCheck --check-prefix=CHECK0 %s 4*9880d681SAndroid Build Coastguard Worker; RUN: llvm-nm %t.o.1 | FileCheck --check-prefix=CHECK1 %s 5*9880d681SAndroid Build Coastguard Worker 6*9880d681SAndroid Build Coastguard Worker; FIXME: Investigate test failures on these architecures. 7*9880d681SAndroid Build Coastguard Worker; UNSUPPORTED: mips, mipsel, aarch64, powerpc64 8*9880d681SAndroid Build Coastguard Worker 9*9880d681SAndroid Build Coastguard Workertarget triple = "x86_64-unknown-linux-gnu" 10*9880d681SAndroid Build Coastguard Worker 11*9880d681SAndroid Build Coastguard Worker; CHECK0-NOT: bar 12*9880d681SAndroid Build Coastguard Worker; CHECK0: T foo 13*9880d681SAndroid Build Coastguard Worker; CHECK0-NOT: bar 14*9880d681SAndroid Build Coastguard Workerdefine void @foo() { 15*9880d681SAndroid Build Coastguard Worker call void @bar() 16*9880d681SAndroid Build Coastguard Worker ret void 17*9880d681SAndroid Build Coastguard Worker} 18*9880d681SAndroid Build Coastguard Worker 19*9880d681SAndroid Build Coastguard Worker; CHECK1-NOT: foo 20*9880d681SAndroid Build Coastguard Worker; CHECK1: T bar 21*9880d681SAndroid Build Coastguard Worker; CHECK1-NOT: foo 22*9880d681SAndroid Build Coastguard Workerdefine void @bar() { 23*9880d681SAndroid Build Coastguard Worker call void @foo() 24*9880d681SAndroid Build Coastguard Worker ret void 25*9880d681SAndroid Build Coastguard Worker} 26