gcc/libgomp/testsuite/libgomp.oacc-c-c++-common/pr85422.c
Richard Biener d160ae7814 [lto] Fixup loops before lto write-out
2018-04-26  Richard Biener <rguenther@suse.de>
	    Tom de Vries  <tom@codesourcery.com>

	PR lto/85422
	* lto-streamer-out.c (output_function): Fixup loops if required to match
	discovery done in the reader.

	* testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.

Co-Authored-By: Tom de Vries <tom@codesourcery.com>

From-SVN: r259675
2018-04-26 13:26:25 +00:00

14 lines
149 B
C

/* { dg-do link } */
int
main (void)
{
#pragma acc parallel
#pragma acc loop
for (int i = 1; i < 10; i++)
for (;;)
;
return 0;
}