Chandler Carruth | df96e02 | 2013-01-17 13:19:29 +0000 | [diff] [blame] | 1 | // Test the that the driver produces reasonable linker invocations with |
| 2 | // -fopenmp. |
| 3 | // |
| 4 | // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \ |
| 5 | // RUN: -fopenmp -target i386-unknown-linux \ |
| 6 | // RUN: | FileCheck --check-prefix=CHECK-LD-32 %s |
| 7 | // CHECK-LD-32: "{{.*}}ld{{(.exe)?}}" |
| 8 | // CHECK-LD-32: "-lgomp" "-lrt" "-lgcc" |
| 9 | // CHECK-LD-32: "-lpthread" "-lc" |
| 10 | // |
| 11 | // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \ |
| 12 | // RUN: -fopenmp -target x86_64-unknown-linux \ |
| 13 | // RUN: | FileCheck --check-prefix=CHECK-LD-64 %s |
| 14 | // CHECK-LD-64: "{{.*}}ld{{(.exe)?}}" |
| 15 | // CHECK-LD-64: "-lgomp" "-lrt" "-lgcc" |
| 16 | // CHECK-LD-64: "-lpthread" "-lc" |