File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,8 @@ void TestInst() {
4242#pragma acc init
4343#pragma acc init if (T::value < T{})
4444#pragma acc init device_type(radeon) device_num(getI()) if (getI() < getS())
45+ // expected-error@+2{{OpenACC 'device_num' clause cannot appear more than once on a 'init' directive}}
46+ // expected-note@+1{{previous clause is here}}
4547#pragma acc init device_type(multicore) device_type(host) device_num(t) if (t < T::value) device_num(getI())
4648
4749 // expected-error@+2{{OpenACC 'if' clause cannot appear more than once on a 'init' directive}}
Original file line number Diff line number Diff line change @@ -42,6 +42,8 @@ void TestInst() {
4242#pragma acc shutdown
4343#pragma acc shutdown if (T::value < T{})
4444#pragma acc shutdown device_type(multicore) device_num(getI()) if (getI() < getS())
45+ // expected-error@+2{{OpenACC 'device_num' clause cannot appear more than once on a 'shutdown' directive}}
46+ // expected-note@+1{{previous clause is here}}
4547#pragma acc shutdown device_type(default) device_type(radeon) device_num(t) if (t < T::value) device_num(getI())
4648
4749 // expected-error@+1{{value of type 'const NotConvertible' is not contextually convertible to 'bool'}}
You can’t perform that action at this time.
0 commit comments