mirror of
https://github.com/JakeHillion/object-introspection.git
synced 2024-11-13 22:06:55 +00:00
20 lines
494 B
TOML
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}
|
||
|
]}]'''
|