Skip to content

Commit 10f4751

Browse files
committed
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.
1 parent 7097286 commit 10f4751

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

test/integration/cycles.toml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
includes = ["functional", "memory"]
22
definitions = '''
33
struct RawNode {
4-
uint64_t value;
4+
int value;
55
struct RawNode* next;
66
};
77
88
struct UniqueNode {
9-
uint64_t value;
9+
int value;
1010
std::unique_ptr<struct UniqueNode> next;
1111
};
1212
1313
struct SharedNode {
14-
uint64_t value;
14+
int value;
1515
std::shared_ptr<struct SharedNode> next;
1616
};
1717
'''
@@ -37,8 +37,8 @@ definitions = '''
3737
"dynamicSize": 32,
3838
"members": [
3939
{
40-
"typeName": "uint64_t",
41-
"staticSize": 8,
40+
"typeName": "int",
41+
"staticSize": 4,
4242
"dynamicSize": 0
4343
},
4444
{
@@ -52,8 +52,8 @@ definitions = '''
5252
"dynamicSize": 16,
5353
"members": [
5454
{
55-
"typeName": "uint64_t",
56-
"staticSize": 8,
55+
"typeName": "int",
56+
"staticSize": 4,
5757
"dynamicSize": 0
5858
},
5959
{
@@ -67,8 +67,8 @@ definitions = '''
6767
"dynamicSize": 0,
6868
"members": [
6969
{
70-
"typeName": "uint64_t",
71-
"staticSize": 8,
70+
"typeName": "int",
71+
"staticSize": 4,
7272
"dynamicSize": 0
7373
},
7474
{
@@ -113,8 +113,8 @@ definitions = '''
113113
"dynamicSize": 32,
114114
"members": [
115115
{
116-
"typeName": "uint64_t",
117-
"staticSize": 8,
116+
"typeName": "int",
117+
"staticSize": 4,
118118
"dynamicSize": 0
119119
},
120120
{
@@ -128,8 +128,8 @@ definitions = '''
128128
"dynamicSize": 16,
129129
"members": [
130130
{
131-
"typeName": "uint64_t",
132-
"staticSize": 8,
131+
"typeName": "int",
132+
"staticSize": 4,
133133
"dynamicSize": 0
134134
},
135135
{
@@ -143,8 +143,8 @@ definitions = '''
143143
"dynamicSize": 0,
144144
"members": [
145145
{
146-
"typeName": "uint64_t",
147-
"staticSize": 8,
146+
"typeName": "int",
147+
"staticSize": 4,
148148
"dynamicSize": 0
149149
},
150150
{
@@ -191,8 +191,8 @@ definitions = '''
191191
"dynamicSize": 48,
192192
"members": [
193193
{
194-
"typeName": "uint64_t",
195-
"staticSize": 8,
194+
"typeName": "int",
195+
"staticSize": 4,
196196
"dynamicSize": 0
197197
},
198198
{
@@ -206,8 +206,8 @@ definitions = '''
206206
"dynamicSize": 24,
207207
"members": [
208208
{
209-
"typeName": "uint64_t",
210-
"staticSize": 8,
209+
"typeName": "int",
210+
"staticSize": 4,
211211
"dynamicSize": 0
212212
},
213213
{
@@ -221,8 +221,8 @@ definitions = '''
221221
"dynamicSize": 0,
222222
"members": [
223223
{
224-
"typeName": "uint64_t",
225-
"staticSize": 8,
224+
"typeName": "int",
225+
"staticSize": 4,
226226
"dynamicSize": 0
227227
},
228228
{

0 commit comments

Comments
 (0)