blob: e986af3bb276961f71e203d6c19c1434812874e0 [file] [log] [blame]
// { dg-skip-if "not yet" { c++ } }
void foo(int i)
{
switch (i) // { dg-error "invalid entry to OpenACC structured block" }
{
#pragma acc parallel // { dg-warning "statement will never be executed" }
{ case 0:; }
}
switch (i) // { dg-error "invalid entry to OpenACC structured block" }
{
#pragma acc kernels // { dg-warning "statement will never be executed" }
{ case 0:; }
}
switch (i) // { dg-error "invalid entry to OpenACC structured block" }
{
#pragma acc data // { dg-warning "statement will never be executed" }
{ case 0:; }
}
}