[CMake] More refactoring of symlink creation.
[oota-llvm.git] / test / CodeGen / X86 / pr23900.ll
1 ; RUN: llc -filetype=obj %s -o %t.o
2 ; RUN: llvm-nm %t.o | FileCheck %s
3
4 ; Test that it doesn't crash (and produces an object file).
5 ; This use to pass a symbol with a null name to code that expected a valid
6 ; C string.
7
8 ; CHECK:         U __CxxFrameHandler3
9 ; CHECK:         T f
10 ; CHECK:         t f.cleanup
11 ; CHECK:         U g
12 ; CHECK:         U h
13
14
15 target triple = "x86_64-pc-windows-msvc18.0.0"
16 define void @f(i32 %x) personality i8* bitcast (i32 (...)* @__CxxFrameHandler3 to i8*) {
17   invoke void @h()
18           to label %invoke.cont unwind label %lpad
19 invoke.cont:
20   ret void
21 lpad:
22  landingpad { i8*, i32 }
23           cleanup
24   call void @g(i32 %x)
25   ret void
26 }
27 declare void @h()
28 declare i32 @__CxxFrameHandler3(...)
29 declare void @g(i32 %x)