]> granicus.if.org Git - clang/commitdiff
Add test case for tweaks to clang driver.
authorDavid Chisnall <csdavec@swan.ac.uk>
Sun, 15 Jul 2012 21:18:01 +0000 (21:18 +0000)
committerDavid Chisnall <csdavec@swan.ac.uk>
Sun, 15 Jul 2012 21:18:01 +0000 (21:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160236 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/freebsd.c

index 1fb84a02ac6873d31094edd2406519c6809718ba..69da7c9b5e2d6df4cd87f77d378aa00bf9a52180 100644 (file)
 // RUN:   --sysroot=%S/Inputs/multiarch_freebsd64_tree -print-search-dirs 2>&1 \
 // RUN:   | FileCheck --check-prefix=CHECK-LIB32PATHS %s
 // CHECK-LIB32PATHS: libraries: ={{.*:?}}/usr/lib32
+//
+// Check that the new linker flags are passed to FreeBSD
+// RUN: %clang -no-canonical-prefixes -target x86_64-pc-freebsd8 -m32 %s \
+// RUN:   --sysroot=%S/Inputs/multiarch_freebsd64_tree -### 2>&1 \
+// RUN:   | FileCheck --check-prefix=CHECK-LDFLAGS %s
+// CHECK-LDFLAGS: --hash-style=both
+// CHECK-LDFLAGS: --enable-new-dtags
+