Clang Project

clang_source_code/test/Driver/openbsd.cpp
1// RUN: %clangxx %s -### -o %t.o -target amd64-pc-openbsd 2>&1 \
2// RUN:   | FileCheck --check-prefix=CHECK-CXX %s
3// RUN: %clangxx %s -### -o %t.o -target i686-pc-openbsd 2>&1 \
4// RUN:   | FileCheck --check-prefix=CHECK-CXX %s
5// RUN: %clangxx %s -### -o %t.o -target aarch64-unknown-openbsd 2>&1 \
6// RUN:   | FileCheck --check-prefix=CHECK-CXX %s
7// RUN: %clangxx %s -### -o %t.o -target arm-unknown-openbsd 2>&1 \
8// RUN:   | FileCheck --check-prefix=CHECK-CXX %s
9// CHECK-CXX: "-lc++" "-lc++abi" "-lm"
10
11// RUN: %clangxx %s -### -pg -o %t.o -target amd64-pc-openbsd 2>&1 \
12// RUN:   | FileCheck --check-prefix=CHECK-PG-CXX %s
13// RUN: %clangxx %s -### -pg -o %t.o -target i686-pc-openbsd 2>&1 \
14// RUN:   | FileCheck --check-prefix=CHECK-PG-CXX %s
15// RUN: %clangxx %s -### -pg -o %t.o -target aarch64-unknown-openbsd 2>&1 \
16// RUN:   | FileCheck --check-prefix=CHECK-PG-CXX %s
17// RUN: %clangxx %s -### -pg -o %t.o -target arm-unknown-openbsd 2>&1 \
18// RUN:   | FileCheck --check-prefix=CHECK-PG-CXX %s
19// CHECK-PG-CXX: "-lc++_p" "-lc++abi_p" "-lm_p"
20