You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clang/test/OpenMP/target_teams_distribute_nowait_messages.cpp
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,21 @@ void foo() {
6
6
}
7
7
8
8
intmain(int argc, char **argv) {
9
-
int i;
9
+
int i, z;
10
10
#pragma omp target teams distribute nowait( // expected-error {{expected expression}} // expected-error {{expected ')'}} // expected-note {{to match this '('}}
11
11
#pragma omp target teams distribute nowait (argc)) // expected-warning {{extra tokens at the end of '#pragma omp target teams distribute' are ignored}} //expected-error {{region cannot be nested inside 'target teams distribute' region}}
12
12
for (i = 0; i < argc; ++i) foo();
13
13
#pragma omp target teams distribute nowait device (-10u)
14
14
for (i = 0; i < argc; ++i) foo();
15
-
#pragma omp target teams distribute nowait (3.14) device (-10u) // expected-error {{arguments of OpenMP clause 'nowait' with bitwise operators cannot be of floating type}}
15
+
#pragma omp target teams distribute nowait (3.14) device (-10u)
16
+
for (i = 0; i < argc; ++i) foo();
17
+
#pragma omp target teams distribute nowait (argc>> z)
18
+
for (i = 0; i < argc; ++i) foo();
19
+
#pragma omp target teams distribute nowait (argv[1] = 2) // expected-error {{expected ')'}} expected-note {{to match this '('}}
0 commit comments