[PATCH] D134617: [HLSL] Support register binding attribute on global variable

Xiang Li via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 30 11:56:30 PDT 2022


python3kgae added inline comments.


================
Comment at: clang/test/SemaHLSL/resource_binding_attr_error.hlsl:51
+}
+
+struct S {
----------------
aaron.ballman wrote:
> Let's add another test for a local extern, like:
> ```
> void func() {
>   extern RWBuffer<float> U : register(u5);
> }
> ```
Nice catch.
Never know you could do this.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D134617/new/

https://reviews.llvm.org/D134617



More information about the cfe-commits mailing list