================
@@ -0,0 +1,26 @@
+// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -x hlsl -o - %s 
-verify
+
+#define Overlap0 "CBV(b42), CBV(b42)"
+
+[RootSignature(Overlap0)] // expected-error {{resource ranges b[42;42] and 
b[42;42] overlap within space = 0 and visibility = All}}
----------------
bogner wrote:

I suspect this test will be slightly more readable if we skip the defines. You 
can use `expected-error@+1` to say the error is expected on the next line so 
that the attribute and error message don't need to be on the same line.

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

Reply via email to