From: David Chisnall Date: Sat, 9 Nov 2013 15:03:56 +0000 (+0000) Subject: FreeBSD 10 ships with only libc++, make sure it's the default when compiling X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7c6b0026ee4115f9403109b1bb586c7c409a68e1;p=clang FreeBSD 10 ships with only libc++, make sure it's the default when compiling c++ code. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194332 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Driver/freebsd.cc b/test/Driver/freebsd.cc new file mode 100644 index 0000000000..dea3267233 --- /dev/null +++ b/test/Driver/freebsd.cc @@ -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++