================
@@ -0,0 +1,24 @@
+// When processing a struct containing resources, we should split members
recursively into
+// their own global variables, and not emit a global of struct or array of
+// struct type which contains a resource
+
+// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -emit-llvm
-disable-llvm-passes -o - %s | FileCheck %s --implicit-check-not='@g ='
--implicit-check-not='@array ='
+// RUN: %clang_cc1 -triple spirv1.6-unknown-vulkan1.3-compute -emit-llvm
-disable-llvm-passes -o - %s | FileCheck %s --implicit-check-not='@g ='
--implicit-check-not='@array ='
+// RUN: %if spirv-registered-target && spirv-val %{ %clang_cc1 -triple
spirv1.6-unknown-vulkan1.3-compute -O3 -emit-obj -o %t.spv %s && spirv-val
--target-env vulkan1.3 %t.spv %}
----------------
rj123-nv wrote:
done
https://github.com/llvm/llvm-project/pull/234797
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits