Skip to content

Commit 4823822

Browse files
committed
[sbm] finish test
1 parent a417902 commit 4823822

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/rustdoc-json/attrs/repr_c_int_enum.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
1+
//@ count "$.index[?(@.name=='Foo')].attrs" 1
2+
//@ is "$.index[?(@.name=='Foo')].attrs[*].repr.kind" '"c"'
3+
//@ is "$.index[?(@.name=='Foo')].attrs[*].repr.int" '"u8"'
4+
//@ is "$.index[?(@.name=='Foo')].attrs[*].repr.packed" null
5+
//@ is "$.index[?(@.name=='Foo')].attrs[*].repr.align" 16
26
#[repr(C, u8)]
7+
#[repr(align(16))]
38
pub enum Foo {
49
A(bool) = b'A',
510
B(char) = b'C',

0 commit comments

Comments
 (0)