You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clang/test/SemaCXX/bitfield-layout.cpp
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -35,14 +35,14 @@ CHECK_SIZE(Test4, 8);
35
35
CHECK_ALIGN(Test4, 8);
36
36
37
37
structTest5 {
38
-
char c : 0x100000001; // expected-warning {{width of bit-field 'c' (4294967297 bits) exceeds the width of its type; value will be truncated to 8 bits}}
38
+
char c : 0x100000001; // expected-warning {{width of bit-field 'c' (4'294'967'297 bits) exceeds the width of its type; value will be truncated to 8 bits}}
39
39
};
40
40
// Size and align don't really matter here, just make sure we don't crash.
41
41
CHECK_SIZE(Test5, 1);
42
42
CHECK_ALIGN(Test5, 1);
43
43
44
44
structTest6 {
45
-
char c : (unsigned __int128)0xffffffffffffffff + 2; // expected-error {{bit-field 'c' is too wide (18446744073709551617 bits)}}
45
+
char c : (unsigned __int128)0xffffffffffffffff + 2; // expected-error {{bit-field 'c' is too wide (18'446'744'073'709'551'617 bits)}}
46
46
};
47
47
// Size and align don't really matter here, just make sure we don't crash.
0 commit comments