[OpenMP] fix typo - the standalone 'distribute' pragma should be 'teams distribute' pragma

llvm-svn: 291260
This commit is contained in:
Kelvin Li 2017-01-06 18:49:49 +00:00
parent 42af8da4c8
commit 4c31a209df
1 changed files with 2 additions and 1 deletions

View File

@ -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];