2021-11-23 00:32:58 +08:00
|
|
|
// RUN: %clangxx %s -### -o %t.o -target amd64-unknown-freebsd -stdlib=platform 2>&1 \
|
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-DEFAULT %s
|
2016-03-14 22:34:04 +08:00
|
|
|
// RUN: %clangxx %s -### -o %t.o -target amd64-unknown-freebsd10.0 -stdlib=platform 2>&1 \
|
2013-11-09 23:03:56 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-TEN %s
|
2016-03-14 22:34:04 +08:00
|
|
|
// RUN: %clangxx %s -### -o %t.o -target amd64-unknown-freebsd9.2 -stdlib=platform 2>&1 \
|
2013-11-09 23:03:56 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-NINE %s
|
2021-11-23 00:32:58 +08:00
|
|
|
// CHECK-DEFAULT: "-lc++" "-lm"
|
2016-02-15 00:08:20 +08:00
|
|
|
// CHECK-TEN: "-lc++" "-lm"
|
|
|
|
// CHECK-NINE: "-lstdc++" "-lm"
|
|
|
|
|
2021-11-23 00:32:58 +08:00
|
|
|
// RUN: %clangxx %s -### -pg -o %t.o -target amd64-unknown-freebsd -stdlib=platform 2>&1 \
|
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-PG-DEFAULT %s
|
2021-11-23 00:26:55 +08:00
|
|
|
// RUN: %clangxx %s -### -pg -o %t.o -target amd64-unknown-freebsd14.0 -stdlib=platform 2>&1 \
|
2021-06-22 22:35:36 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-PG-FOURTEEN %s
|
2016-03-14 22:34:04 +08:00
|
|
|
// RUN: %clangxx %s -### -pg -o %t.o -target amd64-unknown-freebsd10.0 -stdlib=platform 2>&1 \
|
2016-02-15 00:08:20 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-PG-TEN %s
|
2016-03-14 22:34:04 +08:00
|
|
|
// RUN: %clangxx %s -### -pg -o %t.o -target amd64-unknown-freebsd9.2 -stdlib=platform 2>&1 \
|
2016-02-15 00:08:20 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-PG-NINE %s
|
2021-11-23 00:32:58 +08:00
|
|
|
// CHECK-PG-DEFAULT: "-lc++_p" "-lm_p"
|
2021-06-22 22:35:36 +08:00
|
|
|
// CHECK-PG-FOURTEEN: "-lc++" "-lm"
|
2016-02-15 00:08:20 +08:00
|
|
|
// CHECK-PG-TEN: "-lc++_p" "-lm_p"
|
|
|
|
// CHECK-PG-NINE: "-lstdc++_p" "-lm_p"
|