a0c88d0629
2015-01-23 Tom de Vries <tom@codesourcery.com> PR libgomp/64672 * lto-opts.c (lto_write_options): Output non-explicit conservative -fno-openacc. * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc. (append_compiler_options): Pass -fopenacc through. * c.opt (fopenacc): Mark as LTO option. * lang.opt (fopenacc): Mark as LTO option. * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test. From-SVN: r220038
19 lines
213 B
C
19 lines
213 B
C
/* { dg-do run } */
|
|
/* { dg-additional-options "-flto" { target lto } } */
|
|
|
|
#include <stdlib.h>
|
|
|
|
int
|
|
main (int argc, char **argv)
|
|
{
|
|
|
|
#pragma acc parallel
|
|
{
|
|
if (argc != 1)
|
|
abort ();
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
|