object-introspection/test/integration/packed.toml
2022-12-19 06:37:51 -08:00

20 lines
494 B
TOML

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,
"members":[
{"name":"p", "staticSize":8, "dynamicSize":0},
{"name":"c", "staticSize":1, "dynamicSize":0},
{"name":"x", "staticSize":8, "dynamicSize":0}
]}]'''