diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2019-03-12 18:52:33 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2019-03-12 18:52:33 +0000 |
commit | 457ce20d09c5fedf7e606d6a49bba9fa81f8caea (patch) | |
tree | 6e34436f149c5ba2143c8e83c5a9817896eebf65 /test/PCH | |
parent | 2d59837707f71a996e38d3e1a2b0c178f9965f7e (diff) |
[OPENMP 5.0]Initial support for 'allocator' clause.
Added parsing/sema analysis/serialization/deserialization for the
'allocator' clause of the 'allocate' directive.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@355952 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/PCH')
-rw-r--r-- | test/PCH/chain-openmp-allocate.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/PCH/chain-openmp-allocate.cpp b/test/PCH/chain-openmp-allocate.cpp index ea529b56ba..1383d0ff27 100644 --- a/test/PCH/chain-openmp-allocate.cpp +++ b/test/PCH/chain-openmp-allocate.cpp @@ -12,14 +12,17 @@ #if !defined(PASS1) #define PASS1 +typedef void **omp_allocator_handle_t; +extern const omp_allocator_handle_t omp_default_mem_alloc; + int a; // CHECK: int a; #elif !defined(PASS2) #define PASS2 -#pragma omp allocate(a) -// CHECK: #pragma omp allocate(a) +#pragma omp allocate(a) allocator(omp_default_mem_alloc) +// CHECK: #pragma omp allocate(a) allocator(omp_default_mem_alloc) #else |