Files
revng-revng/share/revng/test/tests/model-to-header/inline-complex-struct.h.model.yml
2025-04-17 11:19:17 +03:00

106 lines
2.2 KiB
YAML

---
#
# This file is distributed under the MIT License. See LICENSE.md for details.
#
Architecture: x86_64
TypeDefinitions:
- Kind: StructDefinition
ID: 3001
Name: X
Fields:
- Offset: 0
Name: the_struct_y
Type:
Kind: DefinedType
Definition: "/TypeDefinitions/3002-StructDefinition"
Size: 56
- Kind: StructDefinition
ID: 3002
Name: Y
Fields:
- Offset: 0
Name: the_union_w
Type:
Kind: DefinedType
Definition: "/TypeDefinitions/3003-UnionDefinition"
- Offset: 4
Name: the_union_z
Type:
Kind: DefinedType
Definition: "/TypeDefinitions/3004-UnionDefinition"
- Offset: 48
Name: ptr_to_E
Type:
Kind: PointerType
PointerSize: 8
PointeeType:
Kind: DefinedType
Definition: "/TypeDefinitions/3007-EnumDefinition"
Size: 56
- Kind: UnionDefinition
ID: 3003
Name: W
Fields:
- Index: 0
Name: field
Type:
Kind: PrimitiveType
PrimitiveKind: Signed
Size: 4
- Kind: UnionDefinition
ID: 3004
Name: Z
Fields:
- Index: 0
Name: the_enum_e
Type:
Kind: DefinedType
Definition: "/TypeDefinitions/3005-EnumDefinition"
- Index: 1
Name: array_of_a
Type:
Kind: PointerType
PointerSize: 8
PointeeType:
Kind: DefinedType
Definition: "/TypeDefinitions/3006-StructDefinition"
- Kind: EnumDefinition
ID: 3005
Name: E
UnderlyingType:
Kind: PrimitiveType
PrimitiveKind: Unsigned
Size: 4
Entries:
- Value: 2
Name: VALUE
- Value: 7
Name: OTHER
- Kind: StructDefinition
ID: 3006
Name: A
Fields:
- Offset: 0
Name: field
Type:
Kind: PrimitiveType
PrimitiveKind: Signed
Size: 4
Size: 4
- Kind: EnumDefinition
ID: 3007
Name: E2
UnderlyingType:
Kind: PrimitiveType
PrimitiveKind: Unsigned
Size: 4
Entries:
- Value: 1
Name: FIRST
- Value: 2
Name: SECOND
---