gcc/libgomp/testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c
Tom de Vries 22f1a03704 Use secure_getenv for GOMP_DEBUG
2017-06-27  Tom de Vries  <tom@codesourcery.com>

	* env.c (parse_unsigned_long_1): Factor out of ...
	(parse_unsigned_long): ... here.
	(parse_int_1): Factor out of ...
	(parse_int): ... here.
	(parse_int_secure): New function.
	(initialize_env): Use parse_int_secure for GOMP_DEBUG.
	* secure_getenv.h: Factor out of ...
	* plugin/plugin-hsa.c: ... here.
	* testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.

From-SVN: r249694
2017-06-27 15:51:37 +00:00

14 lines
211 B
C

/* { dg-do run } */
/* { dg-set-target-env-var GOMP_DEBUG "1" } */
/* Check that GOMP_DEBUG=1 triggers some output. */
int
main (void)
{
#pragma acc parallel
;
}
/* { dg-output "GOACC_parallel_keyed" } */