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
@@ -13,27 +19,27 @@ int main(int argc, char **argv) {
13
19
{}
14
20
#pragma omp target enter nowait data map(to: i) // expected-error {{expected an OpenMP directive}}
15
21
{}
16
-
#pragma omp target enter data nowait() map(to: i) //expected-error {{expected expression}}
22
+
#pragma omp target enter data map(to: i) nowait() //omp-52-and-earlier-warning {{extra tokens at the end of '#pragma omp target enter data' are ignored}} omp-60-and-later-error {{expected expression}}
17
23
{}
18
-
#pragma omp target enter data map(to: i) nowait( //expected-error {{expected expression}} // expected-error {{expected ')'}} // expected-note {{to match this '('}}
24
+
#pragma omp target enter data map(to: i) nowait( //omp-52-and-earlier-warning {{extra tokens at the end of '#pragma omp target enter data' are ignored}} omp-60-and-later-error {{expected expression}} omp-60-and-later-error {{expected ')'}} omp-60-and-later-note {{to match this '('}}
19
25
{}
20
-
#pragma omp target enter data map(to: i) nowait (argc)) //expected-warning {{extra tokens at the end of '#pragma omp target enter data' are ignored}}
26
+
#pragma omp target enter data map(to: i) nowait (argc)) //omp-52-and-earlier-warning {{extra tokens at the end of '#pragma omp target enter data' are ignored}} omp-60-and-later-warning {{extra tokens at the end of '#pragma omp target_enter_data' are ignored}}
21
27
{}
22
28
#pragma omp target enter data map(to: i) nowait device (-10u)
23
29
{}
24
-
#pragma omp target enter data map(to: i) nowait (3.14) device (-10u)
30
+
#pragma omp target enter data map(to: i) nowait (3.14) device (-10u)// omp-52-and-earlier-warning {{extra tokens at the end of '#pragma omp target enter data' are ignored}}
25
31
{}
26
-
#pragma omp target enter data map(to: i) nowait (argc>> i)
32
+
#pragma omp target enter data map(to: i) nowait (argc>> i)// omp-52-and-earlier-warning {{extra tokens at the end of '#pragma omp target enter data' are ignored}}
27
33
{}
28
-
#pragma omp target enter data map(to: i) nowait (argv[1] = 2) //expected-error {{expected ')'}} expected-note {{to match this '('}}
34
+
#pragma omp target enter data map(to: i) nowait (argv[1] = 2) //omp-52-and-earlier-warning {{extra tokens at the end of '#pragma omp target enter data' are ignored}} omp-60-and-later-error {{expected ')'}} omp-60-and-later-note {{to match this '('}}
29
35
{}
30
-
#pragma omp target enter data map(to: i) nowait (argc > 0 ? argv[1] : argv[2])
36
+
#pragma omp target enter data map(to: i) nowait (argc > 0 ? argv[1] : argv[2])// omp-52-and-earlier-warning {{extra tokens at the end of '#pragma omp target enter data' are ignored}}
31
37
{}
32
-
#pragma omp target enter data map(to: i) nowait (S1) //expected-error {{use of undeclared identifier 'S1'}}
38
+
#pragma omp target enter data map(to: i) nowait (S1) //omp-52-and-earlier-warning {{extra tokens at the end of '#pragma omp target enter data' are ignored}} omp-60-and-later-error {{use of undeclared identifier 'S1'}}
33
39
{}
34
-
#pragma omp target enter data map(to: i) nowait nowait //expected-error {{directive '#pragma omp target enter data' cannot contain more than one 'nowait' clause}}
40
+
#pragma omp target enter data map(to: i) nowait nowait //omp-52-and-earlier-error {{directive '#pragma omp target enter data' cannot contain more than one 'nowait' clause}} omp-60-and-later-error {{directive '#pragma omp target_enter_data' cannot contain more than one 'nowait' clause}}
35
41
{}
36
-
#pragma omp target enter data nowait map(to: i) nowait //expected-error {{directive '#pragma omp target enter data' cannot contain more than one 'nowait' clause}}
42
+
#pragma omp target enter data nowait map(to: i) nowait //omp-52-and-earlier-error {{directive '#pragma omp target enter data' cannot contain more than one 'nowait' clause}} omp-60-and-later-error {{directive '#pragma omp target_enter_data' cannot contain more than one 'nowait' clause}}
#pragma omp target exit data map(from: i) nowait( //expected-error {{expected expression}} // expected-error {{expected ')'}} // expected-note {{to match this '('}}
13
-
#pragma omp target exit data map(from: i) nowait (argc)) //expected-warning {{extra tokens at the end of '#pragma omp target exit data' are ignored}}
15
+
#pragma omp target exit data map(from: i) nowait() //omp-52-and-earlier-warning {{extra tokens at the end of '#pragma omp target exit data' are ignored}} omp-60-and-later-error {{expected expression}}
16
+
#pragma omp target exit data map(from: i) nowait( //omp-52-and-earlier-warning {{extra tokens at the end of '#pragma omp target exit data' are ignored}} omp-60-and-later-error {{expected expression}} omp-60-and-later-error {{expected ')'}} omp-60-and-later-note {{to match this '('}}
17
+
#pragma omp target exit data map(from: i) nowait (argc)) //omp-52-and-earlier-warning {{extra tokens at the end of '#pragma omp target exit data' are ignored}} omp-60-and-later-warning {{extra tokens at the end of '#pragma omp target_exit_data' are ignored}}
14
18
#pragma omp target exit data map(from: i) nowait device (-10u)
#pragma omp target exit data map(from: i) nowait (S1) //expected-error {{use of undeclared identifier 'S1'}}
20
-
#pragma omp target exit data map(from: i) nowait nowait //expected-error {{directive '#pragma omp target exit data' cannot contain more than one 'nowait' clause}}
21
-
#pragma omp target exit data nowait map(from: i) nowait //expected-error {{directive '#pragma omp target exit data' cannot contain more than one 'nowait' clause}}
19
+
#pragma omp target exit data map(from: i) nowait (3.14) device (-10u)// omp-52-and-earlier-warning {{extra tokens at the end of '#pragma omp target exit data' are ignored}}
20
+
#pragma omp target exit data map(from: i) nowait (argc>> i)// omp-52-and-earlier-warning {{extra tokens at the end of '#pragma omp target exit data' are ignored}}
21
+
#pragma omp target exit data map(from: i) nowait (argv[1] = 2) //omp-52-and-earlier-warning {{extra tokens at the end of '#pragma omp target exit data' are ignored}} omp-60-and-later-error {{expected ')'}} omp-60-and-later-note {{to match this '('}}
22
+
#pragma omp target exit data map(from: i) nowait (argc > 0 ? argv[1] : argv[2])// omp-52-and-earlier-warning {{extra tokens at the end of '#pragma omp target exit data' are ignored}}
23
+
#pragma omp target exit data map(from: i) nowait (S1) //omp-52-and-earlier-warning {{extra tokens at the end of '#pragma omp target exit data' are ignored}} omp-60-and-later-error {{use of undeclared identifier 'S1'}}
24
+
#pragma omp target exit data map(from: i) nowait nowait //omp-52-and-earlier-error {{directive '#pragma omp target exit data' cannot contain more than one 'nowait' clause}} omp-60-and-later-error {{directive '#pragma omp target_exit_data' cannot contain more than one 'nowait' clause}}
25
+
#pragma omp target exit data nowait map(from: i) nowait //omp-52-and-earlier-error {{directive '#pragma omp target exit data' cannot contain more than one 'nowait' clause}} omp-60-and-later-error {{directive '#pragma omp target_exit_data' cannot contain more than one 'nowait' clause}}
#pragma omp target nowait(//expected-error {{expected expression}} // expected-error {{expected ')'}} // expected-note {{to match this '('}}
16
+
#pragma omp target nowait(//omp-52-and-earlier-warning {{extra tokens at the end of '#pragma omp target' are ignored}} omp-60-and-later-error {{expected expression}} omp-60-and-later-error {{expected ')'}} omp-60-and-later-note {{to match this '('}}
11
17
foo();
12
18
#pragma omp target nowait (argc)) // expected-warning {{extra tokens at the end of '#pragma omp target' are ignored}}
13
19
foo();
14
20
#pragma omp target nowait device (-10u)
15
21
foo();
16
-
#pragma omp target nowait (3.14) device (-10u)
22
+
#pragma omp target nowait (3.14) device (-10u)// omp-52-and-earlier-warning {{extra tokens at the end of '#pragma omp target' are ignored}}
17
23
foo();
18
-
#pragma omp target nowait (argc>> i)
24
+
#pragma omp target nowait (argc>> i)// omp-52-and-earlier-warning {{extra tokens at the end of '#pragma omp target' are ignored}}
19
25
foo();
20
-
#pragma omp target nowait (argv[1] = 2) //expected-error {{expected ')'}} expected-note {{to match this '('}}
26
+
#pragma omp target nowait (argv[1] = 2) //omp-52-and-earlier-warning {{extra tokens at the end of '#pragma omp target' are ignored}} omp-60-and-later-error {{expected ')'}} omp-60-and-later-note {{to match this '('}}
#pragma omp target nowait (S1) //omp-52-and-earlier-warning {{extra tokens at the end of '#pragma omp target' are ignored}} omp-60-and-later-error {{use of undeclared identifier 'S1'}}
#pragma omp target parallel for nowait( // expected-error {{expected expression}} // expected-error {{expected ')'}} // expected-note {{to match this '('}}
14
+
#pragma omp target parallel for nowait( //omp-52-and-earlier-warning {{extra tokens at the end of '#pragma omp target parallel for' are ignored}} omp-60-and-later-error {{expected expression}} omp-60-and-later-error {{expected ')'}} omp-60-and-later-note {{to match this '('}}
11
15
for (i = 0; i < argc; ++i) foo();
12
16
#pragma omp target parallel for nowait (argc)) // expected-warning {{extra tokens at the end of '#pragma omp target parallel for' are ignored}}
13
17
for (i = 0; i < argc; ++i) foo();
14
18
#pragma omp target parallel for nowait device (-10u)
15
19
for (i = 0; i < argc; ++i) foo();
16
-
#pragma omp target parallel for nowait (3.14) device (-10u)
20
+
#pragma omp target parallel for nowait (3.14) device (-10u)// omp-52-and-earlier-warning {{extra tokens at the end of '#pragma omp target parallel for' are ignored}}
17
21
for (i = 0; i < argc; ++i) foo();
18
-
#pragma omp target parallel for nowait (argc>> z)
22
+
#pragma omp target parallel for nowait (argc>> z)// omp-52-and-earlier-warning {{extra tokens at the end of '#pragma omp target parallel for' are ignored}}
19
23
for (i = 0; i < argc; ++i) foo();
20
-
#pragma omp target parallel for nowait (argv[1] = 2) //expected-error {{expected ')'}} expected-note {{to match this '('}}
24
+
#pragma omp target parallel for nowait (argv[1] = 2) //omp-52-and-earlier-warning {{extra tokens at the end of '#pragma omp target parallel for' are ignored}} omp-60-and-later-error {{expected ')'}} omp-60-and-later-note {{to match this '('}}
#pragma omp target parallel for nowait (argc > 0 ? argv[1] : argv[2])// omp-52-and-earlier-warning {{extra tokens at the end of '#pragma omp target parallel for' are ignored}}
23
27
for (i = 0; i < argc; ++i) foo();
24
-
#pragma omp target parallel for nowait (S1) //expected-error {{use of undeclared identifier 'S1'}}
28
+
#pragma omp target parallel for nowait (S1) //omp-52-and-earlier-warning {{extra tokens at the end of '#pragma omp target parallel for' are ignored}} omp-60-and-later-error {{use of undeclared identifier 'S1'}}
0 commit comments