Skip to content

Commit c709b63

Browse files
committed
Updated one more LIT test
1 parent d0afa23 commit c709b63

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

clang/test/OpenMP/target_teams_distribute_nowait_messages.cpp

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,21 @@ void foo() {
66
}
77

88
int main(int argc, char **argv) {
9-
int i;
9+
int i, z;
1010
#pragma omp target teams distribute nowait( // expected-error {{expected expression}} // expected-error {{expected ')'}} // expected-note {{to match this '('}}
1111
#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}}
1212
for (i = 0; i < argc; ++i) foo();
1313
#pragma omp target teams distribute nowait device (-10u)
1414
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 '('}}
20+
for (i = 0; i < argc; ++i) foo();
21+
#pragma omp target teams distribute nowait (argc > 0 ? argv[1] : argv[2])
22+
for (i = 0; i < argc; ++i) foo();
23+
#pragma omp target teams distribute nowait (S1) // expected-error {{use of undeclared identifier 'S1'}}
1624
for (i = 0; i < argc; ++i) foo();
1725

1826
return 0;

0 commit comments

Comments
 (0)