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