diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2019-02-22 16:49:13 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2019-02-22 16:49:13 +0000 |
commit | b09bcf8efdbddd80c73b7a06d56e368b9882ea63 (patch) | |
tree | 7a9389679dba5a087d7da1431481fd001e120720 /clang/test/OpenMP/target_vla_messages.cpp | |
parent | 896289277da513296a942cf4ea5891e4417c6168 (diff) | |
download | bcm5719-llvm-b09bcf8efdbddd80c73b7a06d56e368b9882ea63.tar.gz bcm5719-llvm-b09bcf8efdbddd80c73b7a06d56e368b9882ea63.zip |
[OPENMP] Delayed diagnostics for VLA support.
Generalized processing of the deferred diagnostics for OpenMP/CUDA code.
llvm-svn: 354679
Diffstat (limited to 'clang/test/OpenMP/target_vla_messages.cpp')
-rw-r--r-- | clang/test/OpenMP/target_vla_messages.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/test/OpenMP/target_vla_messages.cpp b/clang/test/OpenMP/target_vla_messages.cpp index b744081e983..30a27517242 100644 --- a/clang/test/OpenMP/target_vla_messages.cpp +++ b/clang/test/OpenMP/target_vla_messages.cpp @@ -47,7 +47,7 @@ void target_template(int arg) { #pragma omp target { #ifdef NO_VLA - // expected-error@+2 {{variable length arrays are not supported for the current target}} + // expected-error@+2 2 {{variable length arrays are not supported for the current target}} #endif T vla[arg]; } @@ -73,6 +73,9 @@ void target(int arg) { } } +#ifdef NO_VLA + // expected-note@+2 {{in instantiation of function template specialization 'target_template<long>' requested here}} +#endif target_template<long>(arg); } |