diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2015-10-26 17:24:44 +0100 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gcc.gnu.org> | 2015-10-26 17:24:44 +0100 |
commit | aa8b7d3051adfdd4ed6ef875de5e8bbebd0746d7 (patch) | |
tree | 7c1e10b20f55d7105ac57aed5fdfa1c88960b9ed /libgomp/testsuite | |
parent | 7c8f138de604aea3d4bb29f8bc3303ddaa82959b (diff) | |
download | gcc-aa8b7d3051adfdd4ed6ef875de5e8bbebd0746d7.zip gcc-aa8b7d3051adfdd4ed6ef875de5e8bbebd0746d7.tar.gz gcc-aa8b7d3051adfdd4ed6ef875de5e8bbebd0746d7.tar.bz2 |
libgomp: Additional acc_shutdown bug fixing and testing
libgomp/
* oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
* testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
From-SVN: r229380
Diffstat (limited to 'libgomp/testsuite')
-rw-r--r-- | libgomp/testsuite/libgomp.oacc-c-c++-common/lib-8.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-8.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-8.c new file mode 100644 index 0000000..ea28b6b --- /dev/null +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-8.c @@ -0,0 +1,19 @@ +/* Expect error message when shutting down a device that has never been + initialized. */ +/* { dg-do run } */ + +#include <stdio.h> +#include <openacc.h> + +int +main (int argc, char **argv) +{ + fprintf (stderr, "CheCKpOInT\n"); + acc_shutdown (acc_device_default); + + return 0; +} + +/* { dg-output "CheCKpOInT(\n|\r\n|\r).*" } */ +/* { dg-output "no device initialized" } */ +/* { dg-shouldfail "" } */ |