Use \01 to disable the mangler. Should fix the 32 bit windows bots.
[oota-llvm.git] / test / LTO / linkonce_odr_func.ll
1 ; RUN: llvm-as < %s >%t1
2 ; RUN: llvm-lto -o %t2 -dso-symbol=foo1 -dso-symbol=foo2 -dso-symbol=foo3 \
3 ; RUN:     -dso-symbol=foo4  %t1 -disable-opt
4 ; RUN: llvm-nm %t2 | FileCheck %s
5
6 ; FIXME: it looks like -march option of llvm-lto is not working and llvm-nm is
7 ; not printing the correct values with Mach-O.
8 ; XFAIL: darwin
9
10 ; FIXME: llvm-nm is printing 'd' instead of 't' for foo1.
11 ; XFAIL: powerpc64
12
13 ; CHECK: t foo1
14 define linkonce_odr void @"\01foo1"() noinline {
15   ret void
16 }
17
18 ; CHECK: {{W|T}} foo2
19 define linkonce_odr void @"\01foo2"() noinline {
20   ret void
21 }
22
23 ; CHECK: t foo3
24 define linkonce_odr void @"\01foo3"() noinline {
25   ret void
26 }
27
28 ; CHECK: {{W|T}} foo4
29 define linkonce_odr void @"\01foo4"() noinline {
30   ret void
31 }
32
33 declare void @f(void()*)
34
35 declare void @p()
36
37 define void @bar() {
38 bb0:
39   call void @"\01foo1"()
40   call void @f(void()* @"\01foo2")
41   invoke void @"\01foo3"() to label %bb1 unwind label %clean
42 bb1:
43   invoke void @f(void()* @"\01foo4") to label %bb2 unwind label %clean
44 bb2:
45   ret void
46 clean:
47   landingpad {i32, i32} personality void()* @p cleanup
48   ret void
49 }