From: Kelvin Li Date: Fri, 6 Jan 2017 18:49:49 +0000 (+0000) Subject: [OpenMP] fix typo - the standalone 'distribute' pragma should be 'teams distribute... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1c63251bf66621e880cb6cbdf03fc052f544ffc2;p=clang [OpenMP] fix typo - the standalone 'distribute' pragma should be 'teams distribute' pragma git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@291260 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/OpenMP/teams_distribute_collapse_messages.cpp b/test/OpenMP/teams_distribute_collapse_messages.cpp index 9ce58e0b06..37c10e5986 100644 --- a/test/OpenMP/teams_distribute_collapse_messages.cpp +++ b/test/OpenMP/teams_distribute_collapse_messages.cpp @@ -66,7 +66,8 @@ T tmain(T argc, S **argv) { //expected-note 2 {{declared here}} for (int i = ST; i < N; i++) argv[0][i] = argv[0][i] - argv[0][i-ST]; -#pragma omp distribute collapse (S) // expected-error {{'S' does not refer to a value}} +#pragma omp target +#pragma omp teams distribute collapse (S) // expected-error {{'S' does not refer to a value}} for (int i = ST; i < N; i++) argv[0][i] = argv[0][i] - argv[0][i-ST];