blob: 334567d33372aa9e9018d8e0266cc1be4687a806 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-additional-options "-Wuninitialized" } */
void
foo (void)
{
int i;
#pragma acc parallel
{
i = 1;
}
}
void
foo2 (void)
{
int i;
#pragma acc parallel firstprivate (i) /* { dg-warning "is used uninitialized" } */
{
i = 1;
}
}