mclangc/tests/parser/structs.exp

41 lines
1.0 KiB
Plaintext

Program {
ast: Block(
[
Statement(
Struct {
name: Ident(
"foo_t",
),
fields: [],
},
),
Statement(
Struct {
name: Ident(
"bar_t",
),
fields: [
(
Ident(
"a",
),
Ref {
inner: Owned(
Ident(
"bar_t",
),
),
mutable: false,
},
),
],
},
),
],
),
structs: {},
enums: {},
types: {},
functions: {},
member_functions: {},
}