================ @@ -1,9 +1,10 @@ // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -x hlsl -o - -fsyntax-only %s -verify -// expected-error@+1 {{invalid resource class specifier 'c' used; expected 'b', 's', 't', or 'u'}} -float a : register(c0, space1); +// valid, The register keyword in this statement isn't binding a resource, rather it is +// specifying a constant register binding offset within the $Globals cbuffer, which is legacy behavior from DX9. +float a : register(c0); ---------------- python3kgae wrote:
Got another test idea ``` groupshared float a[10] : register(c1); ``` Sorry for not getting all the ideas at once :( https://github.com/llvm/llvm-project/pull/97103 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits