1 ; RUN: llc -O0 -mtriple=i386-pc-win32 -filetype=asm -o - %s | FileCheck %s
3 !0 = !{!"/DEFAULTLIB:msvcrt.lib"}
4 !1 = !{!"/DEFAULTLIB:msvcrt.lib", !"/DEFAULTLIB:secur32.lib"}
5 !2 = !{!"/DEFAULTLIB:\22C:\5Cpath to\5Casan_rt.lib\22"}
6 !3 = !{!"\22/with spaces\22"}
7 !llvm.linker.options = !{!0, !1, !2, !3}
9 define dllexport void @foo() {
13 ; CHECK: .section .drectve,"yn"
14 ; CHECK: .ascii " /DEFAULTLIB:msvcrt.lib"
15 ; CHECK: .ascii " /DEFAULTLIB:msvcrt.lib"
16 ; CHECK: .ascii " /DEFAULTLIB:secur32.lib"
17 ; CHECK: .ascii " /DEFAULTLIB:\"C:\\path to\\asan_rt.lib\""
18 ; CHECK: .ascii " \"/with spaces\""
19 ; CHECK: .ascii " /EXPORT:_foo"