summaryrefslogtreecommitdiffstats
path: root/test/OpenMP/single_copyprivate_messages.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2015-01-19 05:20:46 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2015-01-19 05:20:46 +0000
commit571d9d84bb6665ec5a6925183a09c9dcb94ab94b (patch)
tree735fbac2f95d452b786a7e4e37b656b613565e92 /test/OpenMP/single_copyprivate_messages.cpp
parentb5a0f8e88490495a12db0ed73b606282217f1b42 (diff)
[OPENMP] Disable copyprivate an nowait clauses in 'single' directive.
The copyprivate clause must not be used with the nowait clause in single directive. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@226429 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/OpenMP/single_copyprivate_messages.cpp')
-rw-r--r--test/OpenMP/single_copyprivate_messages.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/OpenMP/single_copyprivate_messages.cpp b/test/OpenMP/single_copyprivate_messages.cpp
index 7bb145c6d3..252f2e6a4f 100644
--- a/test/OpenMP/single_copyprivate_messages.cpp
+++ b/test/OpenMP/single_copyprivate_messages.cpp
@@ -152,6 +152,8 @@ int main(int argc, char **argv) {
#pragma omp parallel
#pragma omp single firstprivate(i) copyprivate(i) // expected-error {{firstprivate variable cannot be copyprivate}} expected-note {{defined as firstprivate}}
foo();
+#pragma omp single copyprivate(i) nowait // expected-error {{the 'copyprivate' clause must not be used with the 'nowait' clause}} expected-note {{'nowait' clause is here}}
+ foo();
return tmain(argc, argv); // expected-note {{in instantiation of function template specialization 'tmain<int, char>' requested here}}
}