1! { dg-do run } 2! 3use openacc 4 5if (acc_get_num_devices (acc_device_host) .ne. 1) STOP 1 6call acc_set_device_type (acc_device_host) 7if (acc_get_device_type () .ne. acc_device_host) STOP 2 8call acc_set_device_num (0, acc_device_host) 9if (acc_get_device_num (acc_device_host) .ne. 0) STOP 3 10call acc_shutdown (acc_device_host) 11 12call acc_init (acc_device_host) 13call acc_shutdown (acc_device_host) 14 15end 16