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
[OpenACC] Audit/add tests to ensure we enforce appertainment correctly
I apparently missed a few other clauses as well when doing my initial
implementation, so this adds tests for all, and fixes up the few that
had problems.
This is something that I'll do better to keep an eye on, though
shouldn't be necessary once the rest of the clauses are implemented and
we can remove the 'default' case.
// expected-error@+1{{OpenACC variable is not a valid variable name, sub-array, array element, member of a composite variable, or composite variable member}}
60
60
#pragma acc parallel copy((float)ArrayParam[2])
61
61
while(1);
62
+
63
+
// expected-error@+2{{OpenACC 'copy' clause is not valid on 'loop' directive}}
64
+
// expected-warning@+1{{OpenACC construct 'loop' not yet implemented}}
65
+
#pragma acc loop copy(LocalInt)
66
+
for(;;);
67
+
// expected-error@+2{{OpenACC 'pcopy' clause is not valid on 'loop' directive}}
68
+
// expected-warning@+1{{OpenACC construct 'loop' not yet implemented}}
69
+
#pragma acc loop pcopy(LocalInt)
70
+
for(;;);
71
+
// expected-error@+2{{OpenACC 'present_or_copy' clause is not valid on 'loop' directive}}
72
+
// expected-warning@+1{{OpenACC construct 'loop' not yet implemented}}
// expected-error@+1{{OpenACC variable is not a valid variable name, sub-array, array element, member of a composite variable, or composite variable member}}
// expected-error@+1{{OpenACC variable is not a valid variable name, sub-array, array element, member of a composite variable, or composite variable member}}
// expected-error@+1{{OpenACC variable is not a valid variable name, sub-array, array element, member of a composite variable, or composite variable member}}
// expected-error@+1{{OpenACC variable is not a valid variable name, sub-array, array element, member of a composite variable, or composite variable member}}
0 commit comments