Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Driver / mingw-msvcrt.c
blob48a30d8469cb6f9e3330654d728b361ed14aed08
1 // RUN: %clang -v -target i686-pc-windows-gnu -### %s 2>&1 | FileCheck -check-prefix=CHECK_DEFAULT %s
2 // RUN: %clang -v -target i686-pc-windows-gnu -lmsvcr120 -### %s 2>&1 | FileCheck -check-prefix=CHECK_MSVCR120 %s
3 // RUN: %clang -v -target i686-pc-windows-gnu -lucrtbase -### %s 2>&1 | FileCheck -check-prefix=CHECK_UCRTBASE %s
4 // RUN: %clang -v -target i686-pc-windows-gnu -lucrt -### %s 2>&1 | FileCheck -check-prefix=CHECK_UCRT %s
5 // RUN: %clang -v -target i686-pc-windows-gnu -lcrtdll -### %s 2>&1 | FileCheck -check-prefix=CHECK_CRTDLL %s
7 // CHECK_DEFAULT: "-lmingwex" "-lmsvcrt" "-ladvapi32"
8 // CHECK_DEFAULT-SAME: "-lmsvcrt" "-lkernel32" "{{.*}}crtend.o"
9 // CHECK_MSVCR120: "-lmsvcr120"
10 // CHECK_MSVCR120-SAME: "-lmingwex" "-ladvapi32"
11 // CHECK_UCRTBASE: "-lucrtbase"
12 // CHECK_UCRTBASE-SAME: "-lmingwex" "-ladvapi32"
13 // CHECK_UCRT: "-lucrt"
14 // CHECK_UCRT-SAME: "-lmingwex" "-ladvapi32"
15 // CHECK_CRTDLL: "-lcrtdll"
16 // CHECK_CRTDLL-SAME: "-lmingwex" "-ladvapi32"