Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/c-c++-common/goacc/uninit-use-device-clause.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* Test fails due to PR70388. */ | |
2 /* { dg-do compile } */ | |
3 /* { dg-excess-errors "PR70388" { xfail *-*-* } } */ | |
4 /* { dg-additional-options "-Wuninitialized" } */ | |
5 | |
6 void | |
7 foo (void) | |
8 { | |
9 int i; | |
10 | |
11 #pragma acc host_data use_device(i) /* { dg-warning "is used uninitialized in this function" "" { xfail *-*-* } } */ | |
12 { | |
13 } | |
14 } |