blob: afc55af692d264948d086c6e624b9e8e312f9a4c [file] [log] [blame]
Reid Klecknerd973ca32013-04-25 19:34:41 +00001; RUN: llc -O0 -mtriple=i386-pc-win32 -filetype=asm -o - %s | FileCheck %s
2
Michael Kupersteinfc3e6262015-02-16 11:57:17 +00003!0 = !{i32 6, !"Linker Options", !{!{!"/DEFAULTLIB:msvcrt.lib"}, !{!"/DEFAULTLIB:msvcrt.lib", !"/DEFAULTLIB:secur32.lib"}, !{!"/DEFAULTLIB:\22C:\5Cpath to\5Casan_rt.lib\22"}, !{!"\22/with spaces\22"}}}
Reid Klecknerd973ca32013-04-25 19:34:41 +00004
5!llvm.module.flags = !{ !0 }
6
7define dllexport void @foo() {
8 ret void
9}
10
David Majnemerfb839772014-09-20 21:18:43 +000011; CHECK: .section .drectve,"yn"
Reid Klecknerd973ca32013-04-25 19:34:41 +000012; CHECK: .ascii " /DEFAULTLIB:msvcrt.lib"
13; CHECK: .ascii " /DEFAULTLIB:msvcrt.lib"
14; CHECK: .ascii " /DEFAULTLIB:secur32.lib"
Michael Kupersteinfc3e6262015-02-16 11:57:17 +000015; CHECK: .ascii " /DEFAULTLIB:\"C:\\path to\\asan_rt.lib\""
Reid Klecknerd973ca32013-04-25 19:34:41 +000016; CHECK: .ascii " \"/with spaces\""
Reid Klecknerd973ca32013-04-25 19:34:41 +000017; CHECK: .ascii " /EXPORT:_foo"