object-introspection/test/integration/packed.toml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
623 B
TOML
Raw Normal View History

2022-12-19 14:37:51 +00:00
definitions = '''
struct __attribute__((__packed__)) Foo {
char *p; /* 8 bytes */
char c; /* 1 byte */
long x; /* 8 bytes */
};
'''
[cases]
[cases.a]
param_types = ["const Foo&"]
setup = "return {};"
expect_json = '''[{
"staticSize":17,
"dynamicSize":0,
"exclusiveSize":0,
"size":17,
2022-12-19 14:37:51 +00:00
"members":[
{"name":"p", "staticSize":8, "dynamicSize":0, "exclusiveSize":8, "size":8},
{"name":"c", "staticSize":1, "dynamicSize":0, "exclusiveSize":1, "size":1},
{"name":"x", "staticSize":8, "dynamicSize":0, "exclusiveSize":8, "size":8}
2022-12-19 14:37:51 +00:00
]}]'''