summaryrefslogtreecommitdiff
path: root/test/Driver/hip-output-file-name.hip
diff options
context:
space:
mode:
Diffstat (limited to 'test/Driver/hip-output-file-name.hip')
-rw-r--r--test/Driver/hip-output-file-name.hip9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Driver/hip-output-file-name.hip b/test/Driver/hip-output-file-name.hip
new file mode 100644
index 0000000000000..cce9f76406eec
--- /dev/null
+++ b/test/Driver/hip-output-file-name.hip
@@ -0,0 +1,9 @@
+// REQUIRES: clang-driver
+// REQUIRES: x86-registered-target
+// REQUIRES: amdgpu-registered-target
+
+// RUN: %clang -### -c -target x86_64-linux-gnu -fgpu-rdc \
+// RUN: -x hip --cuda-gpu-arch=gfx803 --cuda-gpu-arch=gfx900 %s \
+// RUN: 2>&1 | FileCheck %s
+
+// CHECK: {{.*}}clang-offload-bundler{{.*}}"-outputs=hip-output-file-name.o"