1 // RUN: %clang -no-canonical-prefixes -target amd64-pc-bitrig %s -### 2>&1 \ 2 // RUN: | FileCheck --check-prefix=CHECK-LD-C %s 3 // CHECK-LD-C: clang{{.*}}" "-cc1" "-triple" "amd64-pc-bitrig" 4 // CHECK-LD-C: ld{{.*}}" {{.*}} "-lc" "-lclang_rt.amd64" 5 6 // RUN: %clangxx -no-canonical-prefixes -target amd64-pc-bitrig %s -### 2>&1 \ 7 // RUN: | FileCheck --check-prefix=CHECK-LD-CXX-STDLIB %s 8 // CHECK-LD-CXX-STDLIB: clang{{.*}}" "-cc1" "-triple" "amd64-pc-bitrig" 9 // CHECK-LD-CXX-STDLIB: ld{{.*}}" {{.*}} "-lc++" "-lc++abi" "-lpthread" "-lm" "-lc" "-lclang_rt.amd64" 10 11 // RUN: %clangxx -stdlib=libstdc++ -no-canonical-prefixes -target amd64-pc-bitrig %s -### 2>&1 \ 12 // RUN: | FileCheck --check-prefix=CHECK-LD-CXX %s 13 // CHECK-LD-CXX: clang{{.*}}" "-cc1" "-triple" "amd64-pc-bitrig" 14 // CHECK-LD-CXX: ld{{.*}}" {{.*}} "-lstdc++" "-lm" "-lc" "-lclang_rt.amd64" 15 16 // RUN: %clang -no-canonical-prefixes -target amd64-pc-bitrig -pthread %s -### 2>&1 \ 17 // RUN: | FileCheck --check-prefix=CHECK-PTHREAD %s 18 // CHECK-PTHREAD: clang{{.*}}" "-cc1" "-triple" "amd64-pc-bitrig" 19 // CHECK-PTHREAD: ld{{.*}}" {{.*}} "{{.*}}crtbegin.o" {{.*}}.o" "-lpthread" "-lc" "-lclang_rt.amd64" "{{.*}}crtend.o" 20 21 // RUN: %clang -no-canonical-prefixes -target amd64-pc-bitrig -pg -pthread %s -### 2>&1 \ 22 // RUN: | FileCheck --check-prefix=CHECK-PG-PTHREAD %s 23 // CHECK-PG-PTHREAD: clang{{.*}}" "-cc1" "-triple" "amd64-pc-bitrig" 24 // CHECK-PG-PTHREAD: ld{{.*}}" {{.*}} "{{.*}}crtbegin.o" {{.*}}.o" "-lpthread_p" "-lc_p" "-lclang_rt.amd64" "{{.*}}crtend.o" 25 26 // RUN: %clang -no-canonical-prefixes -target amd64-pc-bitrig -shared -pg -pthread %s -### 2>&1 \ 27 // RUN: | FileCheck --check-prefix=CHECK-PG-PTHREAD-SHARED %s 28 // CHECK-PG-PTHREAD-SHARED: clang{{.*}}" "-cc1" "-triple" "amd64-pc-bitrig" 29 // CHECK-PG-PTHREAD-SHARED: ld{{.*}}" {{.*}} "{{.*}}crtbeginS.o" {{.*}}.o" "-lpthread" "-lclang_rt.amd64" "{{.*}}crtendS.o" 30