================
@@ -0,0 +1,16 @@
+// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -x hlsl -o - %s 
-verify
+
+// expected-error@+1{{'row_access' attribute cannot be applied to a 
declaration}}
+[[hlsl::row_access]] __hlsl_resource_t res0;
+
+// expected-error@+1{{HLSL resource needs to have [[hlsl::resource_class()]] 
attribute}}
+__hlsl_resource_t [[hlsl::row_access]] res1;
----------------
bogner wrote:

This case is/should be covered by the resource class tests, I don't think we 
need to duplicate it here.

https://github.com/llvm/llvm-project/pull/107954
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to