Revert "Revert Don't create new comdats in CodeGen"
[oota-llvm.git] / test / MC / COFF / linker-options.ll
1 ; RUN: llc -O0 -mtriple=i386-pc-win32 -filetype=asm -o - %s | FileCheck %s
2
3 !0 = !{i32 6, !"Linker Options", !{!{!"/DEFAULTLIB:msvcrt.lib"}, !{!"/DEFAULTLIB:msvcrt.lib", !"/DEFAULTLIB:secur32.lib"}, !{!"/DEFAULTLIB:C:\5Cpath to\5Casan_rt.lib"}, !{!"/with spaces"}, !{!"\22/quoted spaces\22"}}}
4
5 !llvm.module.flags = !{ !0 }
6
7 define dllexport void @foo() {
8   ret void
9 }
10
11 ; CHECK: .section        .drectve,"yn"
12 ; CHECK: .ascii   " /DEFAULTLIB:msvcrt.lib"
13 ; CHECK: .ascii   " /DEFAULTLIB:msvcrt.lib"
14 ; CHECK: .ascii   " /DEFAULTLIB:secur32.lib"
15 ; CHECK: .ascii   " \"/DEFAULTLIB:C:\\path to\\asan_rt.lib\""
16 ; CHECK: .ascii   " \"/with spaces\""
17 ; CHECK: .ascii   " \"/quoted spaces\""
18 ; CHECK: .ascii   " /EXPORT:_foo"