]> granicus.if.org Git - clang/commitdiff
FreeBSD 10 ships with only libc++, make sure it's the default when compiling
authorDavid Chisnall <csdavec@swan.ac.uk>
Sat, 9 Nov 2013 15:03:56 +0000 (15:03 +0000)
committerDavid Chisnall <csdavec@swan.ac.uk>
Sat, 9 Nov 2013 15:03:56 +0000 (15:03 +0000)
c++ code.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194332 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/freebsd.cc [new file with mode: 0644]

diff --git a/test/Driver/freebsd.cc b/test/Driver/freebsd.cc
new file mode 100644 (file)
index 0000000..dea3267
--- /dev/null
@@ -0,0 +1,6 @@
+// RUN: %clangxx %s -### -o %t.o -target amd64-unknown-freebsd10.0 2>&1 \
+// RUN:   | FileCheck --check-prefix=CHECK-TEN %s
+// RUN: %clangxx %s -### -o %t.o -target amd64-unknown-freebsd9.2 2>&1 \
+// RUN:   | FileCheck --check-prefix=CHECK-NINE %s
+// CHECK-TEN: -lc++
+// CHECK-NINE: -lstdc++