================ @@ -0,0 +1,18 @@ +// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -x hlsl -o - %s -verify + +// expected-no-diagnostics + +struct MyBitFields { + unsigned int field1 : 3; // 3 bits for field1 + unsigned int field2 : 4; // 4 bits for field2 + int field3 : 5; // 5 bits for field3 (signed) ---------------- llvm-beanz wrote:
Can we verify the AST for these to make sure they are parsed as bitfield declarations rather than just making sure it doesn't produce errors? https://github.com/llvm/llvm-project/pull/96346 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits