aboutsummaryrefslogtreecommitdiff
path: root/clang/test/OpenMP/target_device_ancestor_messages.cpp
blob: e6705b369c70901a5c30db7e5b907c53e06e7b1d (plain)
1
2
3
4
5
6
7
// RUN: %clang_cc1 -triple=x86_64 -verify -fopenmp -fopenmp-targets=x86_64 -x c++ -fexceptions -fcxx-exceptions %s
// RUN: %clang_cc1 -triple=x86_64 -verify -fopenmp-simd -fopenmp-targets=x86_64 -x c++ -fexceptions -fcxx-exceptions %s

void bar() {
#pragma omp target device(ancestor : 1) // expected-error {{device clause with ancestor device-modifier used without specifying 'requires reverse_offload'}}
  ;
}