Skip to content

Commit 30d175d

Browse files
committed
Add tests
1 parent 9763281 commit 30d175d

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

clang/test/Driver/flang/msvc-link.f90

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
! REQUIRES: system-windows
2+
!
3+
! RUN: %clang --driver-mode=flang -### %s -Ltest 2>&1 | FileCheck %s
4+
!
5+
! Test that user provided paths come before the Flang runtimes and compiler-rt
6+
! CHECK: "-libpath:test"
7+
! CHECK: "-libpath:{{.*}}\\lib"
8+
! CHECK: "-libpath:{{.*}}\\lib\\clang\\{{[0-9]+}}\\lib\\windows"

clang/test/Driver/msvc-link.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// REQUIRES: system-windows
2+
//
3+
// RUN: %clang -### %s -Ltest 2>&1 | FileCheck %s
4+
//
5+
// Test that user provided paths come before compiler-rt
6+
// CHECK: "-libpath:test"
7+
// CHECK: "-libpath:{{.*}}\\lib\\clang\\{{[0-9]+}}\\lib\\windows"

0 commit comments

Comments
 (0)