]> granicus.if.org Git - clang/commitdiff
[OpenMP] fix typo - the standalone 'distribute' pragma should be 'teams distribute...
authorKelvin Li <kkwli0@gmail.com>
Fri, 6 Jan 2017 18:49:49 +0000 (18:49 +0000)
committerKelvin Li <kkwli0@gmail.com>
Fri, 6 Jan 2017 18:49:49 +0000 (18:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@291260 91177308-0d34-0410-b5e6-96231b3b80d8

test/OpenMP/teams_distribute_collapse_messages.cpp

index 9ce58e0b0650db95b79ceb32f611b4c9428b6148..37c10e5986bf3d00f764a0ba244b7a5844ddb7f7 100644 (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];