Commit 9e3f4551 by Tom de Vries Committed by Tom de Vries

Add goacc/uninit-use-device-clause.{c,f95}

2016-03-24  Tom de Vries  <tom@codesourcery.com>

	* c-c++-common/goacc/uninit-use-device-clause.c: New test.
	* gfortran.dg/goacc/uninit-use-device-clause.f95: New test.

From-SVN: r234459
parent 45780041
2016-03-24 Tom de Vries <tom@codesourcery.com>
* c-c++-common/goacc/uninit-use-device-clause.c: New test.
* gfortran.dg/goacc/uninit-use-device-clause.f95: New test.
2016-03-24 Tom de Vries <tom@codesourcery.com>
* c-c++-common/goacc/uninit-dim-clause.c: New test.
* gfortran.dg/goacc/uninit-dim-clause.f95: New test.
......
/* 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 *-*-* } } */
{
}
}
! { dg-do compile }
! { dg-additional-options "-Wuninitialized" }
subroutine test
integer :: i
!$acc host_data use_device(i) ! { dg-warning "is used uninitialized in this function" }
!$acc end host_data
end subroutine test
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment