| 1 |
// RUN: %clang --target=x86_64-pc-windows-msvc --rtlib=compiler-rt -### %s 2>&1 | FileCheck %s --check-prefix=MSVC-COMPILER-RT |
| 2 |
// RUN: %clang --target=x86_64-pc-windows-msvc --rtlib=compiler-rt --rtlib=platform -### %s 2>&1 | FileCheck %s --check-prefix=MSVC-DEFAULT |
| 3 |
// RUN: not %clang %s --target=x86_64-pc-windows-msvc --rtlib=libgcc 2>&1 | FileCheck %s --check-prefix=CHECK-ERROR |
| 4 |
|
| 5 |
// MSVC-COMPILER-RT: "{{.*}}clang_rt.builtins{{.*}}" |
| 6 |
// MSVC-DEFAULT-NOT: "{{.*}}clang_rt.builtins{{.*}}" |
| 7 |
// CHECK-ERROR: unsupported runtime library 'libgcc' for platform 'MSVC' |