[clang] [Sema] Add check for bitfield assignments to larger integral types (PR #68276)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 12 10:28:07 PDT 2023
================
@@ -0,0 +1,37 @@
+// RUN: %clang_cc1 -Wconversion -fsyntax-only -verify %s
+// RUN: %clang_cc1 -Wbitfield-conversion -fsyntax-only -verify %s
+
+typedef struct _xx {
+ int bf:9; // expected-note{{declared here}}
+ // expected-note at -1{{declared here}}
+ // expected-note at -2{{declared here}}
+ // expected-note at -3{{declared here}}
----------------
vabridgers wrote:
Missed that, thank you! Completed.
https://github.com/llvm/llvm-project/pull/68276
More information about the cfe-commits
mailing list