Skip to content

Commit 437bae9

Browse files
Add requested test
1 parent 0ab515e commit 437bae9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

clang/test/CIR/CodeGen/mms-bitfields.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@ struct s2 {
2424
// LLVM-DAG: %struct.s2 = type { i32, i8, i32 }
2525
// OGCG-DAG: %struct.s2 = type { i32, i8, i32 }
2626

27+
struct s3 {
28+
int a : 18;
29+
int : 0;
30+
int c : 14;
31+
} zero_bit;
32+
33+
// CIR-DAG: !rec_s3 = !cir.record<struct "s3" {!s32i, !s32i}>
34+
// LLVM-DAG: %struct.s3 = type { i32, i32 }
35+
// OGCG-DAG: %struct.s3 = type { i32, i32 }
36+
2737
#pragma pack (push,1)
2838

2939
struct Inner {

0 commit comments

Comments
 (0)