Integration tests: Remove typedefs from cycles.toml

uint64_t is a typedef. int is a primitive.

The cycles tests are going to be re-used to underpin some type-graph
unit tests. The patch removes unnecessary typedefs and makes the unit
tests simpler.
This commit is contained in:
Alastair Robertson 2023-04-03 03:50:48 -07:00 committed by Alastair Robertson
parent 7097286d8a
commit 10f47510d1

View File

@ -1,17 +1,17 @@
includes = ["functional", "memory"]
definitions = '''
struct RawNode {
uint64_t value;
int value;
struct RawNode* next;
};
struct UniqueNode {
uint64_t value;
int value;
std::unique_ptr<struct UniqueNode> next;
};
struct SharedNode {
uint64_t value;
int value;
std::shared_ptr<struct SharedNode> next;
};
'''
@ -37,8 +37,8 @@ definitions = '''
"dynamicSize": 32,
"members": [
{
"typeName": "uint64_t",
"staticSize": 8,
"typeName": "int",
"staticSize": 4,
"dynamicSize": 0
},
{
@ -52,8 +52,8 @@ definitions = '''
"dynamicSize": 16,
"members": [
{
"typeName": "uint64_t",
"staticSize": 8,
"typeName": "int",
"staticSize": 4,
"dynamicSize": 0
},
{
@ -67,8 +67,8 @@ definitions = '''
"dynamicSize": 0,
"members": [
{
"typeName": "uint64_t",
"staticSize": 8,
"typeName": "int",
"staticSize": 4,
"dynamicSize": 0
},
{
@ -113,8 +113,8 @@ definitions = '''
"dynamicSize": 32,
"members": [
{
"typeName": "uint64_t",
"staticSize": 8,
"typeName": "int",
"staticSize": 4,
"dynamicSize": 0
},
{
@ -128,8 +128,8 @@ definitions = '''
"dynamicSize": 16,
"members": [
{
"typeName": "uint64_t",
"staticSize": 8,
"typeName": "int",
"staticSize": 4,
"dynamicSize": 0
},
{
@ -143,8 +143,8 @@ definitions = '''
"dynamicSize": 0,
"members": [
{
"typeName": "uint64_t",
"staticSize": 8,
"typeName": "int",
"staticSize": 4,
"dynamicSize": 0
},
{
@ -191,8 +191,8 @@ definitions = '''
"dynamicSize": 48,
"members": [
{
"typeName": "uint64_t",
"staticSize": 8,
"typeName": "int",
"staticSize": 4,
"dynamicSize": 0
},
{
@ -206,8 +206,8 @@ definitions = '''
"dynamicSize": 24,
"members": [
{
"typeName": "uint64_t",
"staticSize": 8,
"typeName": "int",
"staticSize": 4,
"dynamicSize": 0
},
{
@ -221,8 +221,8 @@ definitions = '''
"dynamicSize": 0,
"members": [
{
"typeName": "uint64_t",
"staticSize": 8,
"typeName": "int",
"staticSize": 4,
"dynamicSize": 0
},
{