1 // REQUIRES: nvptx-registered-target
3 // RUN: %clang_cc1 -triple nvptx -fcuda-is-device \
4 // RUN: -fgpu-allow-device-init \
5 // RUN: %s 2>&1 | FileCheck %s
7 // CHECK: warning: '-fgpu-allow-device-init' is ignored since it is only supported for HIP