blob: ac169a903e9829a6d45b0e56080db76e29be13dd [file] [log] [blame]
/* OpenACC default (none) clause. */
void f1 ()
{
int f1_a = 2;
float f1_b[2];
#pragma acc kernels default (none) /* { dg-message "enclosing OpenACC .kernels. construct" } */
{
f1_b[0] /* { dg-error ".f1_b. not specified in enclosing OpenACC .kernels. construct" } */
= f1_a; /* { dg-error ".f1_a. not specified in enclosing OpenACC .kernels. construct" } */
}
#pragma acc parallel default (none) /* { dg-message "enclosing OpenACC .parallel. construct" } */
{
f1_b[0] /* { dg-error ".f1_b. not specified in enclosing OpenACC .parallel. construct" } */
= f1_a; /* { dg-error ".f1_a. not specified in enclosing OpenACC .parallel. construct" } */
}
}