================
@@ -3,6 +3,30 @@
 // RUN: %clang_cc1 -verify -cl-std=CL2.0 -triple amdgcn-amd-amdhsa 
-Wno-unused-value %s
 
 void foo() {
+    typedef __amdgpu_named_workgroup_barrier_t SugaredArray[2];
+
+    struct TestSimple {
+        __amdgpu_named_workgroup_barrier_t x;
+    };
+
+    struct TestArray {
+        __amdgpu_named_workgroup_barrier_t y[2];
+    };
+
+    struct TestSugared {
+        SugaredArray z[2];
+    };
+
+    struct GoodWrapper {
+        __amdgpu_named_workgroup_barrier_t x;
----------------
shiltian wrote:

I'm not really sure if this is really helpful, and it doesn't have a clear 
semantic to me. What is the point of having it?

https://github.com/llvm/llvm-project/pull/207687
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to