2018-09-26 12:28:39 +08:00
|
|
|
// RUN: %clang_cc1 -verify -fopenmp -ast-print %s | FileCheck %s
|
|
|
|
// RUN: %clang_cc1 -fopenmp -x c++ -std=c++11 -emit-pch -o %t %s
|
|
|
|
// RUN: %clang_cc1 -fopenmp -std=c++11 -include-pch %t -fsyntax-only -verify %s -ast-print | FileCheck %s
|
|
|
|
|
|
|
|
// RUN: %clang_cc1 -verify -fopenmp-simd -ast-print %s | FileCheck %s
|
|
|
|
// RUN: %clang_cc1 -fopenmp-simd -x c++ -std=c++11 -emit-pch -o %t %s
|
|
|
|
// RUN: %clang_cc1 -fopenmp-simd -std=c++11 -include-pch %t -fsyntax-only -verify %s -ast-print | FileCheck %s
|
2022-02-09 00:30:09 +08:00
|
|
|
|
|
|
|
// RUN: %clang_cc1 -verify -fopenmp -fopenmp-version=99 -DOMP99 -ast-print %s | FileCheck --check-prefixes=CHECK,REV %s
|
|
|
|
// RUN: %clang_cc1 -fopenmp -fopenmp-version=99 -DOMP99 -x c++ -std=c++11 -emit-pch -o %t %s
|
|
|
|
// RUN: %clang_cc1 -fopenmp -fopenmp-version=99 -DOMP99 -std=c++11 -include-pch %t -fsyntax-only -verify %s -ast-print | FileCheck --check-prefixes=CHECK,REV %s
|
|
|
|
|
|
|
|
// RUN: %clang_cc1 -verify -fopenmp-simd -fopenmp-version=99 -DOMP99 -ast-print %s | FileCheck --check-prefixes=CHECK,REV %s
|
|
|
|
// RUN: %clang_cc1 -fopenmp-simd -fopenmp-version=99 -DOMP99 -x c++ -std=c++11 -emit-pch -o %t %s
|
|
|
|
// RUN: %clang_cc1 -fopenmp-simd -fopenmp-version=99 -DOMP99 -std=c++11 -include-pch %t -fsyntax-only -verify %s -ast-print | FileCheck --check-prefixes=CHECK,REV %s
|
2018-09-26 12:28:39 +08:00
|
|
|
// expected-no-diagnostics
|
|
|
|
|
|
|
|
#ifndef HEADER
|
|
|
|
#define HEADER
|
|
|
|
|
|
|
|
#pragma omp requires unified_address
|
|
|
|
// CHECK:#pragma omp requires unified_address
|
|
|
|
|
2018-10-01 21:47:43 +08:00
|
|
|
#pragma omp requires unified_shared_memory
|
|
|
|
// CHECK:#pragma omp requires unified_shared_memory
|
|
|
|
|
2022-02-09 00:30:09 +08:00
|
|
|
#ifdef OMP99
|
2018-10-04 04:07:58 +08:00
|
|
|
#pragma omp requires reverse_offload
|
2022-02-09 00:30:09 +08:00
|
|
|
// REV:#pragma omp requires reverse_offload
|
|
|
|
#endif
|
2018-10-04 04:07:58 +08:00
|
|
|
|
2018-10-11 22:41:10 +08:00
|
|
|
#pragma omp requires dynamic_allocators
|
|
|
|
// CHECK:#pragma omp requires dynamic_allocators
|
|
|
|
|
2018-11-02 20:18:11 +08:00
|
|
|
#pragma omp requires atomic_default_mem_order(seq_cst)
|
|
|
|
// CHECK:#pragma omp requires atomic_default_mem_order(seq_cst)
|
|
|
|
|
2018-09-26 12:28:39 +08:00
|
|
|
#endif
|