Use \01 to disable the mangler. Should fix the 32 bit windows bots.
[oota-llvm.git] / test / LTO / linkonce_odr_func.ll
index 41b0141b17fa914dba487731f14456a8794a76df..ef5eaac2eac95126122d155c97cfa4d18aec6ba1 100644 (file)
 ; XFAIL: powerpc64
 
 ; CHECK: t foo1
-define linkonce_odr void @foo1() noinline {
+define linkonce_odr void @"\01foo1"() noinline {
   ret void
 }
 
-; CHECK: W foo2
-define linkonce_odr void @foo2() noinline {
+; CHECK: {{W|T}} foo2
+define linkonce_odr void @"\01foo2"() noinline {
   ret void
 }
 
 ; CHECK: t foo3
-define linkonce_odr void @foo3() noinline {
+define linkonce_odr void @"\01foo3"() noinline {
   ret void
 }
 
-; CHECK: W foo4
-define linkonce_odr void @foo4() noinline {
+; CHECK: {{W|T}} foo4
+define linkonce_odr void @"\01foo4"() noinline {
   ret void
 }
 
@@ -36,11 +36,11 @@ declare void @p()
 
 define void @bar() {
 bb0:
-  call void @foo1()
-  call void @f(void()* @foo2)
-  invoke void @foo3() to label %bb1 unwind label %clean
+  call void @"\01foo1"()
+  call void @f(void()* @"\01foo2")
+  invoke void @"\01foo3"() to label %bb1 unwind label %clean
 bb1:
-  invoke void @f(void()* @foo4) to label %bb2 unwind label %clean
+  invoke void @f(void()* @"\01foo4") to label %bb2 unwind label %clean
 bb2:
   ret void
 clean: