================ @@ -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); ---------------- bob80905 wrote:
No worries, added the test case along with the error it produced. Treating groupshared variables as `other`. Also added some test cases for basic types inside arrays. 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