1 // RUN: %clangxx %s -### -o %t.o -target amd64-unknown-freebsd10.0 -stdlib=platform 2>&1 \ 2 // RUN: | FileCheck --check-prefix=CHECK-TEN %s 3 // RUN: %clangxx %s -### -o %t.o -target amd64-unknown-freebsd9.2 -stdlib=platform 2>&1 \ 4 // RUN: | FileCheck --check-prefix=CHECK-NINE %s 5 // CHECK-TEN: "-lc++" "-lm" 6 // CHECK-NINE: "-lstdc++" "-lm" 7 8 // RUN: %clangxx %s -### -pg -o %t.o -target amd64-unknown-freebsd10.0 -stdlib=platform 2>&1 \ 9 // RUN: | FileCheck --check-prefix=CHECK-PG-TEN %s 10 // RUN: %clangxx %s -### -pg -o %t.o -target amd64-unknown-freebsd9.2 -stdlib=platform 2>&1 \ 11 // RUN: | FileCheck --check-prefix=CHECK-PG-NINE %s 12 // CHECK-PG-TEN: "-lc++_p" "-lm_p" 13 // CHECK-PG-NINE: "-lstdc++_p" "-lm_p" 14