aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/goacc/uninit-use-device-clause.c
blob: c5d327caf80813345a382fbcd98c3ca5d38b9c74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* Test fails due to PR70388.  */
/* { dg-do compile } */
/* { dg-excess-errors "PR70388" { xfail *-*-* } } */
/* { dg-additional-options "-Wuninitialized" } */

void
foo (void)
{
  int i;

#pragma acc host_data use_device(i) /* { dg-warning "is used uninitialized in this function" "" { xfail *-*-* } } */
  {
  }
}