From 648250a2e50c00eb5c56182a7d2f2b41f74ab16e Mon Sep 17 00:00:00 2001 From: Alexey Bataev Date: Fri, 7 Mar 2014 07:43:52 +0000 Subject: [OPENMP] Fixed linked libraries for libiomp5 on Linux llvm-svn: 203212 --- clang/test/OpenMP/linking.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'clang/test/OpenMP/linking.c') diff --git a/clang/test/OpenMP/linking.c b/clang/test/OpenMP/linking.c index 586e4606d10..979ba1f4e41 100644 --- a/clang/test/OpenMP/linking.c +++ b/clang/test/OpenMP/linking.c @@ -33,13 +33,15 @@ // RUN: -fopenmp=libiomp5 -target i386-unknown-linux \ // RUN: | FileCheck --check-prefix=CHECK-IOMP5-LD-32 %s // CHECK-IOMP5-LD-32: "{{.*}}ld{{(.exe)?}}" -// CHECK-IOMP5-LD-32: "-liomp5" +// CHECK-IOMP5-LD-32: "-liomp5" "-lgcc" +// CHECK-IOMP5-LD-32: "-lpthread" "-lc" // // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \ // RUN: -fopenmp=libiomp5 -target x86_64-unknown-linux \ // RUN: | FileCheck --check-prefix=CHECK-IOMP5-LD-64 %s // CHECK-IOMP5-LD-64: "{{.*}}ld{{(.exe)?}}" -// CHECK-IOMP5-LD-64: "-liomp5" +// CHECK-IOMP5-LD-64: "-liomp5" "-lgcc" +// CHECK-IOMP5-LD-64: "-lpthread" "-lc" // // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \ // RUN: -fopenmp=lib -target i386-unknown-linux \ -- cgit v1.2.3