blob: bfe1a11aa2b43f26dc5682caec8ebee9e645c595 [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;
/* { dg-note {'i' was declared here} {} { target *-*-* } .-1 } */
#pragma acc parallel firstprivate (i) /* { dg-warning "is used uninitialized" } */
{
i = 1;
}
}