File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed
Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change 66// RUN: FileCheck --input-file=%t.ll %s -check-prefix=OGCG
77
88struct padding_after_field {
9- char c ;
10- int i ;
9+ char c ;
10+ int i ;
1111};
1212
1313struct bitfield_with_padding {
14- unsigned int a : 3 ;
15- unsigned int b : 5 ;
16- int c ;
14+ unsigned int a : 3 ;
15+ unsigned int b : 5 ;
16+ int c ;
1717};
1818
1919struct tail_padding {
20- int a ;
21- char b ;
20+ int a ;
21+ char b ;
2222};
2323
2424struct multiple_padding {
25- char a ;
26- short b ;
27- long long c ;
25+ char a ;
26+ short b ;
27+ long long c ;
2828};
2929
3030void test_zero_init_padding (void ) {
31- static const struct padding_after_field paf = {1 , 42 };
32- static const struct bitfield_with_padding bfp = {1 , 2 , 99 };
33- static const struct tail_padding tp = {10 , 20 };
34- static const struct multiple_padding mp = {5 , 10 , 100 };
31+ static const struct padding_after_field paf = {1 , 42 };
32+ static const struct bitfield_with_padding bfp = {1 , 2 , 99 };
33+ static const struct tail_padding tp = {10 , 20 };
34+ static const struct multiple_padding mp = {5 , 10 , 100 };
3535}
3636
3737// Type definitions for anonymous structs with padding
You can’t perform that action at this time.
0 commit comments