aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenOpenCLCXX/global_init.clcpp')
-rw-r--r--clang/test/CodeGenOpenCLCXX/global_init.clcpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/CodeGenOpenCLCXX/global_init.clcpp b/clang/test/CodeGenOpenCLCXX/global_init.clcpp
new file mode 100644
index 000000000000..4e02d4accb62
--- /dev/null
+++ b/clang/test/CodeGenOpenCLCXX/global_init.clcpp
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 %s -triple spir -emit-llvm -O0 -o - | FileCheck %s
+
+struct S {
+ S() {}
+};
+
+S s;
+
+//CHECK: define internal spir_kernel void @_GLOBAL__sub_I_{{.*}}!kernel_arg_addr_space [[ARGMD:![0-9]+]] !kernel_arg_access_qual [[ARGMD]] !kernel_arg_type [[ARGMD]] !kernel_arg_base_type [[ARGMD]] !kernel_arg_type_qual [[ARGMD]]
+// Check that parameters are empty.
+//CHECK: [[ARGMD]] = !{}