mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-25 06:18:56 -04:00

The test was missing '--' on mac as pointed out by -Wslash-u-filename: <stdin>:5:69: note: possible intended match here clang: warning: '/Users/thakis/src/llvm-mono/clang/test/Driver/msvc-link.c' treated as the '/U' option [-Wslash-u-filename] Differential Revision: https://reviews.llvm.org/D51635 llvm-svn: 341654
31 lines
984 B
C
31 lines
984 B
C
// RUN: %clang -target i686-pc-windows-msvc -### %s 2>&1 | FileCheck --check-prefix=BASIC %s
|
|
// BASIC: link.exe"
|
|
// BASIC: "-out:a.exe"
|
|
// BASIC: "-defaultlib:libcmt"
|
|
// BASIC: "-nologo"
|
|
// BASIC-NOT: "-Brepro"
|
|
|
|
// RUN: %clang -target i686-pc-windows-msvc -shared -o a.dll -### %s 2>&1 | FileCheck --check-prefix=DLL %s
|
|
// DLL: link.exe"
|
|
// DLL: "-out:a.dll"
|
|
// DLL: "-defaultlib:libcmt"
|
|
// DLL: "-nologo"
|
|
// DLL: "-dll"
|
|
|
|
// RUN: %clang -target i686-pc-windows-msvc -L/var/empty -L/usr/lib -### %s 2>&1 | FileCheck --check-prefix LIBPATH %s
|
|
// LIBPATH: "-libpath:/var/empty"
|
|
// LIBPATH: "-libpath:/usr/lib"
|
|
// LIBPATH: "-nologo"
|
|
|
|
// RUN: %clang_cl /Brepro -### -- %s 2>&1 | FileCheck --check-prefix=REPRO %s
|
|
// REPRO: link.exe"
|
|
// REPRO: "-out:msvc-link.exe"
|
|
// REPRO: "-nologo"
|
|
// REPRO: "-Brepro"
|
|
|
|
// RUN: %clang_cl /Brepro- -### -- %s 2>&1 | FileCheck --check-prefix=NOREPRO %s
|
|
// NOREPRO: link.exe"
|
|
// NOREPRO: "-out:msvc-link.exe"
|
|
// NOREPRO: "-nologo"
|
|
// NOREPRO-NOT: "-Brepro"
|