
This brings our tree to NetBSD 7.0, as found on -current on the 10-10-2015. This updates: - LLVM to 3.6.1 - GCC to GCC 5.1 - Replace minix/commands/zdump with usr.bin/zdump - external/bsd/libelf has moved to /external/bsd/elftoolchain/ - Import ctwm - Drop sprintf from libminc Change-Id: I149836ac18e9326be9353958bab9b266efb056f0
25 lines
916 B
C
25 lines
916 B
C
// Check that we extract --no-demangle from '-Xlinker' and '-Wl,', since that
|
|
// was a collect2 argument.
|
|
|
|
// RUN: %clang -target i386-apple-darwin9 -### \
|
|
// RUN: -Xlinker one -Xlinker --no-demangle \
|
|
// RUN: -Wl,two,--no-demangle,three -Xlinker four -z five %s 2> %t
|
|
// RUN: FileCheck -check-prefix=DARWIN < %t %s
|
|
//
|
|
// RUN: %clang -target x86_64-pc-linux-gnu -### \
|
|
// RUN: -Xlinker one -Xlinker --no-demangle \
|
|
// RUN: -Wl,two,--no-demangle,three -Xlinker four -z five %s 2> %t
|
|
// RUN: FileCheck -check-prefix=LINUX < %t %s
|
|
//
|
|
// DARWIN-NOT: --no-demangle
|
|
// DARWIN: "one" "two" "three" "four" "-z" "five"
|
|
// LINUX: "--no-demangle" "one" "two" "three" "four" "-z" "five"
|
|
|
|
// Check that we forward '-Xlinker' and '-Wl,' on Windows.
|
|
// RUN: %clang -target i686-pc-win32 -### \
|
|
// RUN: -Xlinker one -Wl,two %s 2>&1 | \
|
|
// RUN: FileCheck -check-prefix=WIN %s
|
|
// WIN: link.exe
|
|
// WIN: "one"
|
|
// WIN: "two"
|