xref: /llvm-project/clang/test/OpenMP/target_device_ancestor_messages.cpp (revision dfc6a1936731b545ad0880a9c52bd043e4c4309d)
1 // RUN: %clang_cc1 -triple=x86_64 -verify -fopenmp -fopenmp-targets=x86_64 -x c++ -fexceptions -fcxx-exceptions %s
2 // RUN: %clang_cc1 -triple=x86_64 -verify -fopenmp-simd -fopenmp-targets=x86_64 -x c++ -fexceptions -fcxx-exceptions %s
3 
bar()4 void bar() {
5 #pragma omp target device(ancestor : 1) // expected-error {{device clause with ancestor device-modifier used without specifying 'requires reverse_offload'}}
6   ;
7 }
8