|
2 | 2 |
|
3 | 3 | // Combinations of `#[repr(..)]` attributes.
|
4 | 4 |
|
5 |
| -//@ is "$.index[*][?(@.name=='ReprCI8')].attrs" '["#[attr = Repr([ReprC, ReprInt(SignedInt(I8))])]\n"]' |
| 5 | +//@ is "$.index[?(@.name=='ReprCI8')].attrs" '["#[attr = Repr([ReprC, ReprInt(SignedInt(I8))])]\n"]' |
6 | 6 | #[repr(C, i8)]
|
7 | 7 | pub enum ReprCI8 {
|
8 | 8 | First,
|
9 | 9 | }
|
10 | 10 |
|
11 |
| -//@ is "$.index[*][?(@.name=='SeparateReprCI16')].attrs" '["#[attr = Repr([ReprC, ReprInt(SignedInt(I16))])]\n"]' |
| 11 | +//@ is "$.index[?(@.name=='SeparateReprCI16')].attrs" '["#[attr = Repr([ReprC, ReprInt(SignedInt(I16))])]\n"]' |
12 | 12 | #[repr(C)]
|
13 | 13 | #[repr(i16)]
|
14 | 14 | pub enum SeparateReprCI16 {
|
15 | 15 | First,
|
16 | 16 | }
|
17 | 17 |
|
18 |
| -//@ is "$.index[*][?(@.name=='ReversedReprCUsize')].attrs" '["#[attr = Repr([ReprInt(UnsignedInt(Usize)), ReprC])]\n"]' |
| 18 | +//@ is "$.index[?(@.name=='ReversedReprCUsize')].attrs" '["#[attr = Repr([ReprInt(UnsignedInt(Usize)), ReprC])]\n"]' |
19 | 19 | #[repr(usize, C)]
|
20 | 20 | pub enum ReversedReprCUsize {
|
21 | 21 | First,
|
22 | 22 | }
|
23 | 23 |
|
24 |
| -//@ is "$.index[*][?(@.name=='ReprCPacked')].attrs" '["#[attr = Repr([ReprC, ReprPacked(Align(1 bytes))])]\n"]' |
| 24 | +//@ is "$.index[?(@.name=='ReprCPacked')].attrs" '["#[attr = Repr([ReprC, ReprPacked(Align(1 bytes))])]\n"]' |
25 | 25 | #[repr(C, packed)]
|
26 | 26 | pub struct ReprCPacked {
|
27 | 27 | a: i8,
|
28 | 28 | b: i64,
|
29 | 29 | }
|
30 | 30 |
|
31 |
| -//@ is "$.index[*][?(@.name=='SeparateReprCPacked')].attrs" '["#[attr = Repr([ReprC, ReprPacked(Align(2 bytes))])]\n"]' |
| 31 | +//@ is "$.index[?(@.name=='SeparateReprCPacked')].attrs" '["#[attr = Repr([ReprC, ReprPacked(Align(2 bytes))])]\n"]' |
32 | 32 | #[repr(C)]
|
33 | 33 | #[repr(packed(2))]
|
34 | 34 | pub struct SeparateReprCPacked {
|
35 | 35 | a: i8,
|
36 | 36 | b: i64,
|
37 | 37 | }
|
38 | 38 |
|
39 |
| -//@ is "$.index[*][?(@.name=='ReversedReprCPacked')].attrs" '["#[attr = Repr([ReprPacked(Align(2 bytes)), ReprC])]\n"]' |
| 39 | +//@ is "$.index[?(@.name=='ReversedReprCPacked')].attrs" '["#[attr = Repr([ReprPacked(Align(2 bytes)), ReprC])]\n"]' |
40 | 40 | #[repr(packed(2), C)]
|
41 | 41 | pub struct ReversedReprCPacked {
|
42 | 42 | a: i8,
|
43 | 43 | b: i64,
|
44 | 44 | }
|
45 | 45 |
|
46 |
| -//@ is "$.index[*][?(@.name=='ReprCAlign')].attrs" '["#[attr = Repr([ReprC, ReprAlign(Align(16 bytes))])]\n"]' |
| 46 | +//@ is "$.index[?(@.name=='ReprCAlign')].attrs" '["#[attr = Repr([ReprC, ReprAlign(Align(16 bytes))])]\n"]' |
47 | 47 | #[repr(C, align(16))]
|
48 | 48 | pub struct ReprCAlign {
|
49 | 49 | a: i8,
|
50 | 50 | b: i64,
|
51 | 51 | }
|
52 | 52 |
|
53 |
| -//@ is "$.index[*][?(@.name=='SeparateReprCAlign')].attrs" '["#[attr = Repr([ReprC, ReprAlign(Align(2 bytes))])]\n"]' |
| 53 | +//@ is "$.index[?(@.name=='SeparateReprCAlign')].attrs" '["#[attr = Repr([ReprC, ReprAlign(Align(2 bytes))])]\n"]' |
54 | 54 | #[repr(C)]
|
55 | 55 | #[repr(align(2))]
|
56 | 56 | pub struct SeparateReprCAlign {
|
57 | 57 | a: i8,
|
58 | 58 | b: i64,
|
59 | 59 | }
|
60 | 60 |
|
61 |
| -//@ is "$.index[*][?(@.name=='ReversedReprCAlign')].attrs" '["#[attr = Repr([ReprAlign(Align(2 bytes)), ReprC])]\n"]' |
| 61 | +//@ is "$.index[?(@.name=='ReversedReprCAlign')].attrs" '["#[attr = Repr([ReprAlign(Align(2 bytes)), ReprC])]\n"]' |
62 | 62 | #[repr(align(2), C)]
|
63 | 63 | pub struct ReversedReprCAlign {
|
64 | 64 | a: i8,
|
65 | 65 | b: i64,
|
66 | 66 | }
|
67 | 67 |
|
68 |
| -//@ is "$.index[*][?(@.name=='AlignedExplicitRepr')].attrs" '["#[attr = Repr([ReprC, ReprAlign(Align(16 bytes)), ReprInt(SignedInt(Isize))])]\n"]' |
| 68 | +//@ is "$.index[?(@.name=='AlignedExplicitRepr')].attrs" '["#[attr = Repr([ReprC, ReprAlign(Align(16 bytes)), ReprInt(SignedInt(Isize))])]\n"]' |
69 | 69 | #[repr(C, align(16), isize)]
|
70 | 70 | pub enum AlignedExplicitRepr {
|
71 | 71 | First,
|
72 | 72 | }
|
73 | 73 |
|
74 |
| -//@ is "$.index[*][?(@.name=='ReorderedAlignedExplicitRepr')].attrs" '["#[attr = Repr([ReprInt(SignedInt(Isize)), ReprC, ReprAlign(Align(16 bytes))])]\n"]' |
| 74 | +//@ is "$.index[?(@.name=='ReorderedAlignedExplicitRepr')].attrs" '["#[attr = Repr([ReprInt(SignedInt(Isize)), ReprC, ReprAlign(Align(16 bytes))])]\n"]' |
75 | 75 | #[repr(isize, C, align(16))]
|
76 | 76 | pub enum ReorderedAlignedExplicitRepr {
|
77 | 77 | First,
|
|
0 commit comments