[clang] [ParserHLSL] Attempt to parse HLSL annotations on Field Decls. (PR #96346)
Justin Bogner via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 21 11:47:29 PDT 2024
================
@@ -0,0 +1,30 @@
+// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -x hlsl -o - %s -verify
+
+// previously, this test would result in an error shown below on the line that
+// declares variable a in struct Eg9:
+// error: use of undeclared identifier
+// 'SV_DispatchThreadID'
+// This is because the annotation is parsed as if it was a c++ bit field, and an identifier
+// that represents an integer is expected, but not found.
----------------
bogner wrote:
No need to explain what the test did before a change in the test itself - that kind of information belongs in the PR description / commit message.
https://github.com/llvm/llvm-project/pull/96346
More information about the cfe-commits
mailing list