blob: 9a8494c127f1c472bf909064abe53456f444211c [file] [log] [blame]
Peter Collingbournec269ed52015-08-27 23:37:36 +00001; 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
Peter Collingbourne834f9372015-08-28 02:14:15 +00006; FIXME: Investigate test failures on these architecures.
Peter Collingbourne07dcb582015-09-04 19:45:36 +00007; UNSUPPORTED: mips, mipsel, aarch64, powerpc64
Peter Collingbourne834f9372015-08-28 02:14:15 +00008
Peter Collingbournec269ed52015-08-27 23:37:36 +00009target 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}