diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2015-05-20 04:24:19 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2015-05-20 04:24:19 +0000 |
commit | db39021ceebbd311125785d407402b74ec668528 (patch) | |
tree | 6a1a9692eb1269740cf03e7ebf02f9d5626dd4cb /clang/test/OpenMP/predefined_macro.c | |
parent | 16dc7b68c4d90cd3abac7015c27030f3d6c710f9 (diff) | |
download | bcm5719-llvm-db39021ceebbd311125785d407402b74ec668528.tar.gz bcm5719-llvm-db39021ceebbd311125785d407402b74ec668528.zip |
[OPENMP] -fopenmp enables OpenMP support (fix for http://llvm.org/PR23492)
-fopenmp turns on OpenMP support and links libiomp5 as OpenMP library. Also there is -fopenmp={libiomp5|libgomp} option that allows to override effect of -fopenmp and link libgomp library (if -fopenmp=libgomp is specified).
Differential Revision: http://reviews.llvm.org/D9736
llvm-svn: 237769
Diffstat (limited to 'clang/test/OpenMP/predefined_macro.c')
-rw-r--r-- | clang/test/OpenMP/predefined_macro.c | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/clang/test/OpenMP/predefined_macro.c b/clang/test/OpenMP/predefined_macro.c index c9829ce4572..9a961bce552 100644 --- a/clang/test/OpenMP/predefined_macro.c +++ b/clang/test/OpenMP/predefined_macro.c @@ -1,33 +1,17 @@ -// RUN: %clang_cc1 -fopenmp=libiomp5 -verify -DFOPENMP -o - %s +// RUN: %clang_cc1 -fopenmp -verify -DFOPENMP -o - %s // RUN: %clang_cc1 -verify -o - %s // expected-no-diagnostics #ifdef FOPENMP -// -fopenmp=libiomp5 option is specified +// -fopenmp option is specified #ifndef _OPENMP #error "No _OPENMP macro is defined with -fopenmp option" #elsif _OPENMP != 201307 #error "_OPENMP has incorrect value" #endif //_OPENMP #else -// No -fopenmp=libiomp5 option is specified +// No -fopenmp option is specified #ifdef _OPENMP #error "_OPENMP macro is defined without -fopenmp option" #endif // _OPENMP #endif // FOPENMP -// RUN: %clang_cc1 -fopenmp=libiomp5 -verify -DFOPENMP -o - %s -// RUN: %clang_cc1 -verify -o - %s -// expected-no-diagnostics -#ifdef FOPENMP -// -fopenmp=libiomp5 option is specified -#ifndef _OPENMP -#error "No _OPENMP macro is defined with -fopenmp option" -#elsif _OPENMP != 201307 -#error "_OPENMP has incorrect value" -#endif // _OPENMP -#else -// No -fopenmp=libiomp5 option is specified -#ifdef _OPENMP -#error "_OPENMP macro is defined without -fopenmp option" -#endif // _OPENMP -#endif // FOPENMP |