1 // Check libraries used when linking C++ 2 // RUN: %clangxx %s -### -o %t.o -target amd64-pc-openbsd 2>&1 \ 3 // RUN: | FileCheck --check-prefix=CHECK-CXX %s 4 // RUN: %clangxx %s -### -o %t.o -target i686-pc-openbsd 2>&1 \ 5 // RUN: | FileCheck --check-prefix=CHECK-CXX %s 6 // RUN: %clangxx %s -### -o %t.o -target aarch64-unknown-openbsd 2>&1 \ 7 // RUN: | FileCheck --check-prefix=CHECK-CXX %s 8 // RUN: %clangxx %s -### -o %t.o -target arm-unknown-openbsd 2>&1 \ 9 // RUN: | FileCheck --check-prefix=CHECK-CXX %s 10 // CHECK-CXX: "-lc++" "-lc++abi" "-lpthread" "-lm" 11 12 // Check for profiling variants of libraries when linking C++ 13 // RUN: %clangxx %s -### -pg -o %t.o -target amd64-pc-openbsd 2>&1 \ 14 // RUN: | FileCheck --check-prefix=CHECK-PG-CXX %s 15 // RUN: %clangxx %s -### -pg -o %t.o -target i686-pc-openbsd 2>&1 \ 16 // RUN: | FileCheck --check-prefix=CHECK-PG-CXX %s 17 // RUN: %clangxx %s -### -pg -o %t.o -target aarch64-unknown-openbsd 2>&1 \ 18 // RUN: | FileCheck --check-prefix=CHECK-PG-CXX %s 19 // RUN: %clangxx %s -### -pg -o %t.o -target arm-unknown-openbsd 2>&1 \ 20 // RUN: | FileCheck --check-prefix=CHECK-PG-CXX %s 21 // CHECK-PG-CXX: "-lc++_p" "-lc++abi_p" "-lpthread_p" "-lm_p" 22