From 7c6b0026ee4115f9403109b1bb586c7c409a68e1 Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Sat, 9 Nov 2013 15:03:56 +0000 Subject: [PATCH] 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 --- test/Driver/freebsd.cc | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/Driver/freebsd.cc 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++ -- 2.40.0