internal/cabi: TestBuild TestABI
This commit is contained in:
160
internal/cabi/_testdata/wrap/array_float32.c
Normal file
160
internal/cabi/_testdata/wrap/array_float32.c
Normal file
@@ -0,0 +1,160 @@
|
||||
|
||||
struct array1 {
|
||||
float x[1];
|
||||
};
|
||||
|
||||
struct array1 demo1(struct array1 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array2 {
|
||||
float x[2];
|
||||
};
|
||||
|
||||
struct array2 demo2(struct array2 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array3 {
|
||||
float x[3];
|
||||
};
|
||||
|
||||
struct array3 demo3(struct array3 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array4 {
|
||||
float x[4];
|
||||
};
|
||||
|
||||
struct array4 demo4(struct array4 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array5 {
|
||||
float x[5];
|
||||
};
|
||||
|
||||
struct array5 demo5(struct array5 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array6 {
|
||||
float x[6];
|
||||
};
|
||||
|
||||
struct array6 demo6(struct array6 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array7 {
|
||||
float x[7];
|
||||
};
|
||||
|
||||
struct array7 demo7(struct array7 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array8 {
|
||||
float x[8];
|
||||
};
|
||||
|
||||
struct array8 demo8(struct array8 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array9 {
|
||||
float x[9];
|
||||
};
|
||||
|
||||
struct array9 demo9(struct array9 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array10 {
|
||||
float x[10];
|
||||
};
|
||||
|
||||
struct array10 demo10(struct array10 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array11 {
|
||||
float x[11];
|
||||
};
|
||||
|
||||
struct array11 demo11(struct array11 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array12 {
|
||||
float x[12];
|
||||
};
|
||||
|
||||
struct array12 demo12(struct array12 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array13 {
|
||||
float x[13];
|
||||
};
|
||||
|
||||
struct array13 demo13(struct array13 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array14 {
|
||||
float x[14];
|
||||
};
|
||||
|
||||
struct array14 demo14(struct array14 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array15 {
|
||||
float x[15];
|
||||
};
|
||||
|
||||
struct array15 demo15(struct array15 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array16 {
|
||||
float x[16];
|
||||
};
|
||||
|
||||
struct array16 demo16(struct array16 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array17 {
|
||||
float x[17];
|
||||
};
|
||||
|
||||
struct array17 demo17(struct array17 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array18 {
|
||||
float x[18];
|
||||
};
|
||||
|
||||
struct array18 demo18(struct array18 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array19 {
|
||||
float x[19];
|
||||
};
|
||||
|
||||
struct array19 demo19(struct array19 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array20 {
|
||||
float x[20];
|
||||
};
|
||||
|
||||
struct array20 demo20(struct array20 a) {
|
||||
return a;
|
||||
}
|
||||
160
internal/cabi/_testdata/wrap/array_float64.c
Normal file
160
internal/cabi/_testdata/wrap/array_float64.c
Normal file
@@ -0,0 +1,160 @@
|
||||
|
||||
struct array1 {
|
||||
double x[1];
|
||||
};
|
||||
|
||||
struct array1 demo1(struct array1 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array2 {
|
||||
double x[2];
|
||||
};
|
||||
|
||||
struct array2 demo2(struct array2 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array3 {
|
||||
double x[3];
|
||||
};
|
||||
|
||||
struct array3 demo3(struct array3 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array4 {
|
||||
double x[4];
|
||||
};
|
||||
|
||||
struct array4 demo4(struct array4 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array5 {
|
||||
double x[5];
|
||||
};
|
||||
|
||||
struct array5 demo5(struct array5 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array6 {
|
||||
double x[6];
|
||||
};
|
||||
|
||||
struct array6 demo6(struct array6 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array7 {
|
||||
double x[7];
|
||||
};
|
||||
|
||||
struct array7 demo7(struct array7 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array8 {
|
||||
double x[8];
|
||||
};
|
||||
|
||||
struct array8 demo8(struct array8 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array9 {
|
||||
double x[9];
|
||||
};
|
||||
|
||||
struct array9 demo9(struct array9 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array10 {
|
||||
double x[10];
|
||||
};
|
||||
|
||||
struct array10 demo10(struct array10 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array11 {
|
||||
double x[11];
|
||||
};
|
||||
|
||||
struct array11 demo11(struct array11 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array12 {
|
||||
double x[12];
|
||||
};
|
||||
|
||||
struct array12 demo12(struct array12 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array13 {
|
||||
double x[13];
|
||||
};
|
||||
|
||||
struct array13 demo13(struct array13 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array14 {
|
||||
double x[14];
|
||||
};
|
||||
|
||||
struct array14 demo14(struct array14 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array15 {
|
||||
double x[15];
|
||||
};
|
||||
|
||||
struct array15 demo15(struct array15 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array16 {
|
||||
double x[16];
|
||||
};
|
||||
|
||||
struct array16 demo16(struct array16 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array17 {
|
||||
double x[17];
|
||||
};
|
||||
|
||||
struct array17 demo17(struct array17 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array18 {
|
||||
double x[18];
|
||||
};
|
||||
|
||||
struct array18 demo18(struct array18 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array19 {
|
||||
double x[19];
|
||||
};
|
||||
|
||||
struct array19 demo19(struct array19 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array20 {
|
||||
double x[20];
|
||||
};
|
||||
|
||||
struct array20 demo20(struct array20 a) {
|
||||
return a;
|
||||
}
|
||||
160
internal/cabi/_testdata/wrap/array_int16.c
Normal file
160
internal/cabi/_testdata/wrap/array_int16.c
Normal file
@@ -0,0 +1,160 @@
|
||||
|
||||
struct array1 {
|
||||
short x[1];
|
||||
};
|
||||
|
||||
struct array1 demo1(struct array1 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array2 {
|
||||
short x[2];
|
||||
};
|
||||
|
||||
struct array2 demo2(struct array2 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array3 {
|
||||
short x[3];
|
||||
};
|
||||
|
||||
struct array3 demo3(struct array3 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array4 {
|
||||
short x[4];
|
||||
};
|
||||
|
||||
struct array4 demo4(struct array4 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array5 {
|
||||
short x[5];
|
||||
};
|
||||
|
||||
struct array5 demo5(struct array5 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array6 {
|
||||
short x[6];
|
||||
};
|
||||
|
||||
struct array6 demo6(struct array6 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array7 {
|
||||
short x[7];
|
||||
};
|
||||
|
||||
struct array7 demo7(struct array7 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array8 {
|
||||
short x[8];
|
||||
};
|
||||
|
||||
struct array8 demo8(struct array8 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array9 {
|
||||
short x[9];
|
||||
};
|
||||
|
||||
struct array9 demo9(struct array9 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array10 {
|
||||
short x[10];
|
||||
};
|
||||
|
||||
struct array10 demo10(struct array10 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array11 {
|
||||
short x[11];
|
||||
};
|
||||
|
||||
struct array11 demo11(struct array11 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array12 {
|
||||
short x[12];
|
||||
};
|
||||
|
||||
struct array12 demo12(struct array12 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array13 {
|
||||
short x[13];
|
||||
};
|
||||
|
||||
struct array13 demo13(struct array13 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array14 {
|
||||
short x[14];
|
||||
};
|
||||
|
||||
struct array14 demo14(struct array14 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array15 {
|
||||
short x[15];
|
||||
};
|
||||
|
||||
struct array15 demo15(struct array15 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array16 {
|
||||
short x[16];
|
||||
};
|
||||
|
||||
struct array16 demo16(struct array16 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array17 {
|
||||
short x[17];
|
||||
};
|
||||
|
||||
struct array17 demo17(struct array17 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array18 {
|
||||
short x[18];
|
||||
};
|
||||
|
||||
struct array18 demo18(struct array18 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array19 {
|
||||
short x[19];
|
||||
};
|
||||
|
||||
struct array19 demo19(struct array19 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array20 {
|
||||
short x[20];
|
||||
};
|
||||
|
||||
struct array20 demo20(struct array20 a) {
|
||||
return a;
|
||||
}
|
||||
160
internal/cabi/_testdata/wrap/array_int32.c
Normal file
160
internal/cabi/_testdata/wrap/array_int32.c
Normal file
@@ -0,0 +1,160 @@
|
||||
|
||||
struct array1 {
|
||||
int x[1];
|
||||
};
|
||||
|
||||
struct array1 demo1(struct array1 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array2 {
|
||||
int x[2];
|
||||
};
|
||||
|
||||
struct array2 demo2(struct array2 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array3 {
|
||||
int x[3];
|
||||
};
|
||||
|
||||
struct array3 demo3(struct array3 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array4 {
|
||||
int x[4];
|
||||
};
|
||||
|
||||
struct array4 demo4(struct array4 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array5 {
|
||||
int x[5];
|
||||
};
|
||||
|
||||
struct array5 demo5(struct array5 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array6 {
|
||||
int x[6];
|
||||
};
|
||||
|
||||
struct array6 demo6(struct array6 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array7 {
|
||||
int x[7];
|
||||
};
|
||||
|
||||
struct array7 demo7(struct array7 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array8 {
|
||||
int x[8];
|
||||
};
|
||||
|
||||
struct array8 demo8(struct array8 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array9 {
|
||||
int x[9];
|
||||
};
|
||||
|
||||
struct array9 demo9(struct array9 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array10 {
|
||||
int x[10];
|
||||
};
|
||||
|
||||
struct array10 demo10(struct array10 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array11 {
|
||||
int x[11];
|
||||
};
|
||||
|
||||
struct array11 demo11(struct array11 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array12 {
|
||||
int x[12];
|
||||
};
|
||||
|
||||
struct array12 demo12(struct array12 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array13 {
|
||||
int x[13];
|
||||
};
|
||||
|
||||
struct array13 demo13(struct array13 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array14 {
|
||||
int x[14];
|
||||
};
|
||||
|
||||
struct array14 demo14(struct array14 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array15 {
|
||||
int x[15];
|
||||
};
|
||||
|
||||
struct array15 demo15(struct array15 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array16 {
|
||||
int x[16];
|
||||
};
|
||||
|
||||
struct array16 demo16(struct array16 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array17 {
|
||||
int x[17];
|
||||
};
|
||||
|
||||
struct array17 demo17(struct array17 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array18 {
|
||||
int x[18];
|
||||
};
|
||||
|
||||
struct array18 demo18(struct array18 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array19 {
|
||||
int x[19];
|
||||
};
|
||||
|
||||
struct array19 demo19(struct array19 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array20 {
|
||||
int x[20];
|
||||
};
|
||||
|
||||
struct array20 demo20(struct array20 a) {
|
||||
return a;
|
||||
}
|
||||
160
internal/cabi/_testdata/wrap/array_int64.c
Normal file
160
internal/cabi/_testdata/wrap/array_int64.c
Normal file
@@ -0,0 +1,160 @@
|
||||
|
||||
struct array1 {
|
||||
long long x[1];
|
||||
};
|
||||
|
||||
struct array1 demo1(struct array1 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array2 {
|
||||
long long x[2];
|
||||
};
|
||||
|
||||
struct array2 demo2(struct array2 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array3 {
|
||||
long long x[3];
|
||||
};
|
||||
|
||||
struct array3 demo3(struct array3 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array4 {
|
||||
long long x[4];
|
||||
};
|
||||
|
||||
struct array4 demo4(struct array4 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array5 {
|
||||
long long x[5];
|
||||
};
|
||||
|
||||
struct array5 demo5(struct array5 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array6 {
|
||||
long long x[6];
|
||||
};
|
||||
|
||||
struct array6 demo6(struct array6 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array7 {
|
||||
long long x[7];
|
||||
};
|
||||
|
||||
struct array7 demo7(struct array7 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array8 {
|
||||
long long x[8];
|
||||
};
|
||||
|
||||
struct array8 demo8(struct array8 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array9 {
|
||||
long long x[9];
|
||||
};
|
||||
|
||||
struct array9 demo9(struct array9 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array10 {
|
||||
long long x[10];
|
||||
};
|
||||
|
||||
struct array10 demo10(struct array10 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array11 {
|
||||
long long x[11];
|
||||
};
|
||||
|
||||
struct array11 demo11(struct array11 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array12 {
|
||||
long long x[12];
|
||||
};
|
||||
|
||||
struct array12 demo12(struct array12 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array13 {
|
||||
long long x[13];
|
||||
};
|
||||
|
||||
struct array13 demo13(struct array13 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array14 {
|
||||
long long x[14];
|
||||
};
|
||||
|
||||
struct array14 demo14(struct array14 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array15 {
|
||||
long long x[15];
|
||||
};
|
||||
|
||||
struct array15 demo15(struct array15 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array16 {
|
||||
long long x[16];
|
||||
};
|
||||
|
||||
struct array16 demo16(struct array16 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array17 {
|
||||
long long x[17];
|
||||
};
|
||||
|
||||
struct array17 demo17(struct array17 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array18 {
|
||||
long long x[18];
|
||||
};
|
||||
|
||||
struct array18 demo18(struct array18 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array19 {
|
||||
long long x[19];
|
||||
};
|
||||
|
||||
struct array19 demo19(struct array19 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array20 {
|
||||
long long x[20];
|
||||
};
|
||||
|
||||
struct array20 demo20(struct array20 a) {
|
||||
return a;
|
||||
}
|
||||
160
internal/cabi/_testdata/wrap/array_int8.c
Normal file
160
internal/cabi/_testdata/wrap/array_int8.c
Normal file
@@ -0,0 +1,160 @@
|
||||
|
||||
struct array1 {
|
||||
char x[1];
|
||||
};
|
||||
|
||||
struct array1 demo1(struct array1 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array2 {
|
||||
char x[2];
|
||||
};
|
||||
|
||||
struct array2 demo2(struct array2 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array3 {
|
||||
char x[3];
|
||||
};
|
||||
|
||||
struct array3 demo3(struct array3 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array4 {
|
||||
char x[4];
|
||||
};
|
||||
|
||||
struct array4 demo4(struct array4 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array5 {
|
||||
char x[5];
|
||||
};
|
||||
|
||||
struct array5 demo5(struct array5 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array6 {
|
||||
char x[6];
|
||||
};
|
||||
|
||||
struct array6 demo6(struct array6 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array7 {
|
||||
char x[7];
|
||||
};
|
||||
|
||||
struct array7 demo7(struct array7 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array8 {
|
||||
char x[8];
|
||||
};
|
||||
|
||||
struct array8 demo8(struct array8 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array9 {
|
||||
char x[9];
|
||||
};
|
||||
|
||||
struct array9 demo9(struct array9 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array10 {
|
||||
char x[10];
|
||||
};
|
||||
|
||||
struct array10 demo10(struct array10 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array11 {
|
||||
char x[11];
|
||||
};
|
||||
|
||||
struct array11 demo11(struct array11 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array12 {
|
||||
char x[12];
|
||||
};
|
||||
|
||||
struct array12 demo12(struct array12 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array13 {
|
||||
char x[13];
|
||||
};
|
||||
|
||||
struct array13 demo13(struct array13 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array14 {
|
||||
char x[14];
|
||||
};
|
||||
|
||||
struct array14 demo14(struct array14 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array15 {
|
||||
char x[15];
|
||||
};
|
||||
|
||||
struct array15 demo15(struct array15 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array16 {
|
||||
char x[16];
|
||||
};
|
||||
|
||||
struct array16 demo16(struct array16 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array17 {
|
||||
char x[17];
|
||||
};
|
||||
|
||||
struct array17 demo17(struct array17 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array18 {
|
||||
char x[18];
|
||||
};
|
||||
|
||||
struct array18 demo18(struct array18 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array19 {
|
||||
char x[19];
|
||||
};
|
||||
|
||||
struct array19 demo19(struct array19 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array20 {
|
||||
char x[20];
|
||||
};
|
||||
|
||||
struct array20 demo20(struct array20 a) {
|
||||
return a;
|
||||
}
|
||||
160
internal/cabi/_testdata/wrap/array_pointer.c
Normal file
160
internal/cabi/_testdata/wrap/array_pointer.c
Normal file
@@ -0,0 +1,160 @@
|
||||
|
||||
struct array1 {
|
||||
void* x[1];
|
||||
};
|
||||
|
||||
struct array1 demo1(struct array1 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array2 {
|
||||
void* x[2];
|
||||
};
|
||||
|
||||
struct array2 demo2(struct array2 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array3 {
|
||||
void* x[3];
|
||||
};
|
||||
|
||||
struct array3 demo3(struct array3 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array4 {
|
||||
void* x[4];
|
||||
};
|
||||
|
||||
struct array4 demo4(struct array4 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array5 {
|
||||
void* x[5];
|
||||
};
|
||||
|
||||
struct array5 demo5(struct array5 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array6 {
|
||||
void* x[6];
|
||||
};
|
||||
|
||||
struct array6 demo6(struct array6 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array7 {
|
||||
void* x[7];
|
||||
};
|
||||
|
||||
struct array7 demo7(struct array7 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array8 {
|
||||
void* x[8];
|
||||
};
|
||||
|
||||
struct array8 demo8(struct array8 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array9 {
|
||||
void* x[9];
|
||||
};
|
||||
|
||||
struct array9 demo9(struct array9 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array10 {
|
||||
void* x[10];
|
||||
};
|
||||
|
||||
struct array10 demo10(struct array10 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array11 {
|
||||
void* x[11];
|
||||
};
|
||||
|
||||
struct array11 demo11(struct array11 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array12 {
|
||||
void* x[12];
|
||||
};
|
||||
|
||||
struct array12 demo12(struct array12 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array13 {
|
||||
void* x[13];
|
||||
};
|
||||
|
||||
struct array13 demo13(struct array13 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array14 {
|
||||
void* x[14];
|
||||
};
|
||||
|
||||
struct array14 demo14(struct array14 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array15 {
|
||||
void* x[15];
|
||||
};
|
||||
|
||||
struct array15 demo15(struct array15 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array16 {
|
||||
void* x[16];
|
||||
};
|
||||
|
||||
struct array16 demo16(struct array16 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array17 {
|
||||
void* x[17];
|
||||
};
|
||||
|
||||
struct array17 demo17(struct array17 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array18 {
|
||||
void* x[18];
|
||||
};
|
||||
|
||||
struct array18 demo18(struct array18 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array19 {
|
||||
void* x[19];
|
||||
};
|
||||
|
||||
struct array19 demo19(struct array19 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array20 {
|
||||
void* x[20];
|
||||
};
|
||||
|
||||
struct array20 demo20(struct array20 a) {
|
||||
return a;
|
||||
}
|
||||
160
internal/cabi/_testdata/wrap/array_uintptr.c
Normal file
160
internal/cabi/_testdata/wrap/array_uintptr.c
Normal file
@@ -0,0 +1,160 @@
|
||||
|
||||
struct array1 {
|
||||
void* x[1];
|
||||
};
|
||||
|
||||
struct array1 demo1(struct array1 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array2 {
|
||||
void* x[2];
|
||||
};
|
||||
|
||||
struct array2 demo2(struct array2 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array3 {
|
||||
void* x[3];
|
||||
};
|
||||
|
||||
struct array3 demo3(struct array3 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array4 {
|
||||
void* x[4];
|
||||
};
|
||||
|
||||
struct array4 demo4(struct array4 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array5 {
|
||||
void* x[5];
|
||||
};
|
||||
|
||||
struct array5 demo5(struct array5 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array6 {
|
||||
void* x[6];
|
||||
};
|
||||
|
||||
struct array6 demo6(struct array6 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array7 {
|
||||
void* x[7];
|
||||
};
|
||||
|
||||
struct array7 demo7(struct array7 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array8 {
|
||||
void* x[8];
|
||||
};
|
||||
|
||||
struct array8 demo8(struct array8 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array9 {
|
||||
void* x[9];
|
||||
};
|
||||
|
||||
struct array9 demo9(struct array9 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array10 {
|
||||
void* x[10];
|
||||
};
|
||||
|
||||
struct array10 demo10(struct array10 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array11 {
|
||||
void* x[11];
|
||||
};
|
||||
|
||||
struct array11 demo11(struct array11 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array12 {
|
||||
void* x[12];
|
||||
};
|
||||
|
||||
struct array12 demo12(struct array12 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array13 {
|
||||
void* x[13];
|
||||
};
|
||||
|
||||
struct array13 demo13(struct array13 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array14 {
|
||||
void* x[14];
|
||||
};
|
||||
|
||||
struct array14 demo14(struct array14 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array15 {
|
||||
void* x[15];
|
||||
};
|
||||
|
||||
struct array15 demo15(struct array15 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array16 {
|
||||
void* x[16];
|
||||
};
|
||||
|
||||
struct array16 demo16(struct array16 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array17 {
|
||||
void* x[17];
|
||||
};
|
||||
|
||||
struct array17 demo17(struct array17 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array18 {
|
||||
void* x[18];
|
||||
};
|
||||
|
||||
struct array18 demo18(struct array18 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array19 {
|
||||
void* x[19];
|
||||
};
|
||||
|
||||
struct array19 demo19(struct array19 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct array20 {
|
||||
void* x[20];
|
||||
};
|
||||
|
||||
struct array20 demo20(struct array20 a) {
|
||||
return a;
|
||||
}
|
||||
28
internal/cabi/_testdata/wrap/basic.c
Normal file
28
internal/cabi/_testdata/wrap/basic.c
Normal file
@@ -0,0 +1,28 @@
|
||||
|
||||
char basic_int8(char a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
short basic_int16(short a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
int basic_int32(int a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
long long basic_int64(long long a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
float basic_float32(float a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
double basic_float64(double a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
void* basic_uintptr(void* a) {
|
||||
return a;
|
||||
}
|
||||
8
internal/cabi/_testdata/wrap/demo.c
Normal file
8
internal/cabi/_testdata/wrap/demo.c
Normal file
@@ -0,0 +1,8 @@
|
||||
typedef struct {
|
||||
int x;
|
||||
int y;
|
||||
} st1;
|
||||
|
||||
st1 fn1(st1 v) {
|
||||
return v;
|
||||
}
|
||||
350
internal/cabi/_testdata/wrap/struct_float32.c
Normal file
350
internal/cabi/_testdata/wrap/struct_float32.c
Normal file
@@ -0,0 +1,350 @@
|
||||
|
||||
struct point1 {
|
||||
float x0;
|
||||
};
|
||||
|
||||
struct point1 demo1(struct point1 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point2 {
|
||||
float x0;
|
||||
float x1;
|
||||
};
|
||||
|
||||
struct point2 demo2(struct point2 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point3 {
|
||||
float x0;
|
||||
float x1;
|
||||
float x2;
|
||||
};
|
||||
|
||||
struct point3 demo3(struct point3 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point4 {
|
||||
float x0;
|
||||
float x1;
|
||||
float x2;
|
||||
float x3;
|
||||
};
|
||||
|
||||
struct point4 demo4(struct point4 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point5 {
|
||||
float x0;
|
||||
float x1;
|
||||
float x2;
|
||||
float x3;
|
||||
float x4;
|
||||
};
|
||||
|
||||
struct point5 demo5(struct point5 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point6 {
|
||||
float x0;
|
||||
float x1;
|
||||
float x2;
|
||||
float x3;
|
||||
float x4;
|
||||
float x5;
|
||||
};
|
||||
|
||||
struct point6 demo6(struct point6 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point7 {
|
||||
float x0;
|
||||
float x1;
|
||||
float x2;
|
||||
float x3;
|
||||
float x4;
|
||||
float x5;
|
||||
float x6;
|
||||
};
|
||||
|
||||
struct point7 demo7(struct point7 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point8 {
|
||||
float x0;
|
||||
float x1;
|
||||
float x2;
|
||||
float x3;
|
||||
float x4;
|
||||
float x5;
|
||||
float x6;
|
||||
float x7;
|
||||
};
|
||||
|
||||
struct point8 demo8(struct point8 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point9 {
|
||||
float x0;
|
||||
float x1;
|
||||
float x2;
|
||||
float x3;
|
||||
float x4;
|
||||
float x5;
|
||||
float x6;
|
||||
float x7;
|
||||
float x8;
|
||||
};
|
||||
|
||||
struct point9 demo9(struct point9 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point10 {
|
||||
float x0;
|
||||
float x1;
|
||||
float x2;
|
||||
float x3;
|
||||
float x4;
|
||||
float x5;
|
||||
float x6;
|
||||
float x7;
|
||||
float x8;
|
||||
float x9;
|
||||
};
|
||||
|
||||
struct point10 demo10(struct point10 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point11 {
|
||||
float x0;
|
||||
float x1;
|
||||
float x2;
|
||||
float x3;
|
||||
float x4;
|
||||
float x5;
|
||||
float x6;
|
||||
float x7;
|
||||
float x8;
|
||||
float x9;
|
||||
float x10;
|
||||
};
|
||||
|
||||
struct point11 demo11(struct point11 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point12 {
|
||||
float x0;
|
||||
float x1;
|
||||
float x2;
|
||||
float x3;
|
||||
float x4;
|
||||
float x5;
|
||||
float x6;
|
||||
float x7;
|
||||
float x8;
|
||||
float x9;
|
||||
float x10;
|
||||
float x11;
|
||||
};
|
||||
|
||||
struct point12 demo12(struct point12 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point13 {
|
||||
float x0;
|
||||
float x1;
|
||||
float x2;
|
||||
float x3;
|
||||
float x4;
|
||||
float x5;
|
||||
float x6;
|
||||
float x7;
|
||||
float x8;
|
||||
float x9;
|
||||
float x10;
|
||||
float x11;
|
||||
float x12;
|
||||
};
|
||||
|
||||
struct point13 demo13(struct point13 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point14 {
|
||||
float x0;
|
||||
float x1;
|
||||
float x2;
|
||||
float x3;
|
||||
float x4;
|
||||
float x5;
|
||||
float x6;
|
||||
float x7;
|
||||
float x8;
|
||||
float x9;
|
||||
float x10;
|
||||
float x11;
|
||||
float x12;
|
||||
float x13;
|
||||
};
|
||||
|
||||
struct point14 demo14(struct point14 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point15 {
|
||||
float x0;
|
||||
float x1;
|
||||
float x2;
|
||||
float x3;
|
||||
float x4;
|
||||
float x5;
|
||||
float x6;
|
||||
float x7;
|
||||
float x8;
|
||||
float x9;
|
||||
float x10;
|
||||
float x11;
|
||||
float x12;
|
||||
float x13;
|
||||
float x14;
|
||||
};
|
||||
|
||||
struct point15 demo15(struct point15 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point16 {
|
||||
float x0;
|
||||
float x1;
|
||||
float x2;
|
||||
float x3;
|
||||
float x4;
|
||||
float x5;
|
||||
float x6;
|
||||
float x7;
|
||||
float x8;
|
||||
float x9;
|
||||
float x10;
|
||||
float x11;
|
||||
float x12;
|
||||
float x13;
|
||||
float x14;
|
||||
float x15;
|
||||
};
|
||||
|
||||
struct point16 demo16(struct point16 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point17 {
|
||||
float x0;
|
||||
float x1;
|
||||
float x2;
|
||||
float x3;
|
||||
float x4;
|
||||
float x5;
|
||||
float x6;
|
||||
float x7;
|
||||
float x8;
|
||||
float x9;
|
||||
float x10;
|
||||
float x11;
|
||||
float x12;
|
||||
float x13;
|
||||
float x14;
|
||||
float x15;
|
||||
float x16;
|
||||
};
|
||||
|
||||
struct point17 demo17(struct point17 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point18 {
|
||||
float x0;
|
||||
float x1;
|
||||
float x2;
|
||||
float x3;
|
||||
float x4;
|
||||
float x5;
|
||||
float x6;
|
||||
float x7;
|
||||
float x8;
|
||||
float x9;
|
||||
float x10;
|
||||
float x11;
|
||||
float x12;
|
||||
float x13;
|
||||
float x14;
|
||||
float x15;
|
||||
float x16;
|
||||
float x17;
|
||||
};
|
||||
|
||||
struct point18 demo18(struct point18 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point19 {
|
||||
float x0;
|
||||
float x1;
|
||||
float x2;
|
||||
float x3;
|
||||
float x4;
|
||||
float x5;
|
||||
float x6;
|
||||
float x7;
|
||||
float x8;
|
||||
float x9;
|
||||
float x10;
|
||||
float x11;
|
||||
float x12;
|
||||
float x13;
|
||||
float x14;
|
||||
float x15;
|
||||
float x16;
|
||||
float x17;
|
||||
float x18;
|
||||
};
|
||||
|
||||
struct point19 demo19(struct point19 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point20 {
|
||||
float x0;
|
||||
float x1;
|
||||
float x2;
|
||||
float x3;
|
||||
float x4;
|
||||
float x5;
|
||||
float x6;
|
||||
float x7;
|
||||
float x8;
|
||||
float x9;
|
||||
float x10;
|
||||
float x11;
|
||||
float x12;
|
||||
float x13;
|
||||
float x14;
|
||||
float x15;
|
||||
float x16;
|
||||
float x17;
|
||||
float x18;
|
||||
float x19;
|
||||
};
|
||||
|
||||
struct point20 demo20(struct point20 a) {
|
||||
return a;
|
||||
}
|
||||
350
internal/cabi/_testdata/wrap/struct_float64.c
Normal file
350
internal/cabi/_testdata/wrap/struct_float64.c
Normal file
@@ -0,0 +1,350 @@
|
||||
|
||||
struct point1 {
|
||||
double x0;
|
||||
};
|
||||
|
||||
struct point1 demo1(struct point1 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point2 {
|
||||
double x0;
|
||||
double x1;
|
||||
};
|
||||
|
||||
struct point2 demo2(struct point2 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point3 {
|
||||
double x0;
|
||||
double x1;
|
||||
double x2;
|
||||
};
|
||||
|
||||
struct point3 demo3(struct point3 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point4 {
|
||||
double x0;
|
||||
double x1;
|
||||
double x2;
|
||||
double x3;
|
||||
};
|
||||
|
||||
struct point4 demo4(struct point4 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point5 {
|
||||
double x0;
|
||||
double x1;
|
||||
double x2;
|
||||
double x3;
|
||||
double x4;
|
||||
};
|
||||
|
||||
struct point5 demo5(struct point5 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point6 {
|
||||
double x0;
|
||||
double x1;
|
||||
double x2;
|
||||
double x3;
|
||||
double x4;
|
||||
double x5;
|
||||
};
|
||||
|
||||
struct point6 demo6(struct point6 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point7 {
|
||||
double x0;
|
||||
double x1;
|
||||
double x2;
|
||||
double x3;
|
||||
double x4;
|
||||
double x5;
|
||||
double x6;
|
||||
};
|
||||
|
||||
struct point7 demo7(struct point7 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point8 {
|
||||
double x0;
|
||||
double x1;
|
||||
double x2;
|
||||
double x3;
|
||||
double x4;
|
||||
double x5;
|
||||
double x6;
|
||||
double x7;
|
||||
};
|
||||
|
||||
struct point8 demo8(struct point8 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point9 {
|
||||
double x0;
|
||||
double x1;
|
||||
double x2;
|
||||
double x3;
|
||||
double x4;
|
||||
double x5;
|
||||
double x6;
|
||||
double x7;
|
||||
double x8;
|
||||
};
|
||||
|
||||
struct point9 demo9(struct point9 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point10 {
|
||||
double x0;
|
||||
double x1;
|
||||
double x2;
|
||||
double x3;
|
||||
double x4;
|
||||
double x5;
|
||||
double x6;
|
||||
double x7;
|
||||
double x8;
|
||||
double x9;
|
||||
};
|
||||
|
||||
struct point10 demo10(struct point10 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point11 {
|
||||
double x0;
|
||||
double x1;
|
||||
double x2;
|
||||
double x3;
|
||||
double x4;
|
||||
double x5;
|
||||
double x6;
|
||||
double x7;
|
||||
double x8;
|
||||
double x9;
|
||||
double x10;
|
||||
};
|
||||
|
||||
struct point11 demo11(struct point11 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point12 {
|
||||
double x0;
|
||||
double x1;
|
||||
double x2;
|
||||
double x3;
|
||||
double x4;
|
||||
double x5;
|
||||
double x6;
|
||||
double x7;
|
||||
double x8;
|
||||
double x9;
|
||||
double x10;
|
||||
double x11;
|
||||
};
|
||||
|
||||
struct point12 demo12(struct point12 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point13 {
|
||||
double x0;
|
||||
double x1;
|
||||
double x2;
|
||||
double x3;
|
||||
double x4;
|
||||
double x5;
|
||||
double x6;
|
||||
double x7;
|
||||
double x8;
|
||||
double x9;
|
||||
double x10;
|
||||
double x11;
|
||||
double x12;
|
||||
};
|
||||
|
||||
struct point13 demo13(struct point13 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point14 {
|
||||
double x0;
|
||||
double x1;
|
||||
double x2;
|
||||
double x3;
|
||||
double x4;
|
||||
double x5;
|
||||
double x6;
|
||||
double x7;
|
||||
double x8;
|
||||
double x9;
|
||||
double x10;
|
||||
double x11;
|
||||
double x12;
|
||||
double x13;
|
||||
};
|
||||
|
||||
struct point14 demo14(struct point14 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point15 {
|
||||
double x0;
|
||||
double x1;
|
||||
double x2;
|
||||
double x3;
|
||||
double x4;
|
||||
double x5;
|
||||
double x6;
|
||||
double x7;
|
||||
double x8;
|
||||
double x9;
|
||||
double x10;
|
||||
double x11;
|
||||
double x12;
|
||||
double x13;
|
||||
double x14;
|
||||
};
|
||||
|
||||
struct point15 demo15(struct point15 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point16 {
|
||||
double x0;
|
||||
double x1;
|
||||
double x2;
|
||||
double x3;
|
||||
double x4;
|
||||
double x5;
|
||||
double x6;
|
||||
double x7;
|
||||
double x8;
|
||||
double x9;
|
||||
double x10;
|
||||
double x11;
|
||||
double x12;
|
||||
double x13;
|
||||
double x14;
|
||||
double x15;
|
||||
};
|
||||
|
||||
struct point16 demo16(struct point16 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point17 {
|
||||
double x0;
|
||||
double x1;
|
||||
double x2;
|
||||
double x3;
|
||||
double x4;
|
||||
double x5;
|
||||
double x6;
|
||||
double x7;
|
||||
double x8;
|
||||
double x9;
|
||||
double x10;
|
||||
double x11;
|
||||
double x12;
|
||||
double x13;
|
||||
double x14;
|
||||
double x15;
|
||||
double x16;
|
||||
};
|
||||
|
||||
struct point17 demo17(struct point17 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point18 {
|
||||
double x0;
|
||||
double x1;
|
||||
double x2;
|
||||
double x3;
|
||||
double x4;
|
||||
double x5;
|
||||
double x6;
|
||||
double x7;
|
||||
double x8;
|
||||
double x9;
|
||||
double x10;
|
||||
double x11;
|
||||
double x12;
|
||||
double x13;
|
||||
double x14;
|
||||
double x15;
|
||||
double x16;
|
||||
double x17;
|
||||
};
|
||||
|
||||
struct point18 demo18(struct point18 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point19 {
|
||||
double x0;
|
||||
double x1;
|
||||
double x2;
|
||||
double x3;
|
||||
double x4;
|
||||
double x5;
|
||||
double x6;
|
||||
double x7;
|
||||
double x8;
|
||||
double x9;
|
||||
double x10;
|
||||
double x11;
|
||||
double x12;
|
||||
double x13;
|
||||
double x14;
|
||||
double x15;
|
||||
double x16;
|
||||
double x17;
|
||||
double x18;
|
||||
};
|
||||
|
||||
struct point19 demo19(struct point19 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point20 {
|
||||
double x0;
|
||||
double x1;
|
||||
double x2;
|
||||
double x3;
|
||||
double x4;
|
||||
double x5;
|
||||
double x6;
|
||||
double x7;
|
||||
double x8;
|
||||
double x9;
|
||||
double x10;
|
||||
double x11;
|
||||
double x12;
|
||||
double x13;
|
||||
double x14;
|
||||
double x15;
|
||||
double x16;
|
||||
double x17;
|
||||
double x18;
|
||||
double x19;
|
||||
};
|
||||
|
||||
struct point20 demo20(struct point20 a) {
|
||||
return a;
|
||||
}
|
||||
350
internal/cabi/_testdata/wrap/struct_int16.c
Normal file
350
internal/cabi/_testdata/wrap/struct_int16.c
Normal file
@@ -0,0 +1,350 @@
|
||||
|
||||
struct point1 {
|
||||
short x0;
|
||||
};
|
||||
|
||||
struct point1 demo1(struct point1 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point2 {
|
||||
short x0;
|
||||
short x1;
|
||||
};
|
||||
|
||||
struct point2 demo2(struct point2 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point3 {
|
||||
short x0;
|
||||
short x1;
|
||||
short x2;
|
||||
};
|
||||
|
||||
struct point3 demo3(struct point3 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point4 {
|
||||
short x0;
|
||||
short x1;
|
||||
short x2;
|
||||
short x3;
|
||||
};
|
||||
|
||||
struct point4 demo4(struct point4 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point5 {
|
||||
short x0;
|
||||
short x1;
|
||||
short x2;
|
||||
short x3;
|
||||
short x4;
|
||||
};
|
||||
|
||||
struct point5 demo5(struct point5 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point6 {
|
||||
short x0;
|
||||
short x1;
|
||||
short x2;
|
||||
short x3;
|
||||
short x4;
|
||||
short x5;
|
||||
};
|
||||
|
||||
struct point6 demo6(struct point6 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point7 {
|
||||
short x0;
|
||||
short x1;
|
||||
short x2;
|
||||
short x3;
|
||||
short x4;
|
||||
short x5;
|
||||
short x6;
|
||||
};
|
||||
|
||||
struct point7 demo7(struct point7 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point8 {
|
||||
short x0;
|
||||
short x1;
|
||||
short x2;
|
||||
short x3;
|
||||
short x4;
|
||||
short x5;
|
||||
short x6;
|
||||
short x7;
|
||||
};
|
||||
|
||||
struct point8 demo8(struct point8 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point9 {
|
||||
short x0;
|
||||
short x1;
|
||||
short x2;
|
||||
short x3;
|
||||
short x4;
|
||||
short x5;
|
||||
short x6;
|
||||
short x7;
|
||||
short x8;
|
||||
};
|
||||
|
||||
struct point9 demo9(struct point9 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point10 {
|
||||
short x0;
|
||||
short x1;
|
||||
short x2;
|
||||
short x3;
|
||||
short x4;
|
||||
short x5;
|
||||
short x6;
|
||||
short x7;
|
||||
short x8;
|
||||
short x9;
|
||||
};
|
||||
|
||||
struct point10 demo10(struct point10 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point11 {
|
||||
short x0;
|
||||
short x1;
|
||||
short x2;
|
||||
short x3;
|
||||
short x4;
|
||||
short x5;
|
||||
short x6;
|
||||
short x7;
|
||||
short x8;
|
||||
short x9;
|
||||
short x10;
|
||||
};
|
||||
|
||||
struct point11 demo11(struct point11 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point12 {
|
||||
short x0;
|
||||
short x1;
|
||||
short x2;
|
||||
short x3;
|
||||
short x4;
|
||||
short x5;
|
||||
short x6;
|
||||
short x7;
|
||||
short x8;
|
||||
short x9;
|
||||
short x10;
|
||||
short x11;
|
||||
};
|
||||
|
||||
struct point12 demo12(struct point12 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point13 {
|
||||
short x0;
|
||||
short x1;
|
||||
short x2;
|
||||
short x3;
|
||||
short x4;
|
||||
short x5;
|
||||
short x6;
|
||||
short x7;
|
||||
short x8;
|
||||
short x9;
|
||||
short x10;
|
||||
short x11;
|
||||
short x12;
|
||||
};
|
||||
|
||||
struct point13 demo13(struct point13 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point14 {
|
||||
short x0;
|
||||
short x1;
|
||||
short x2;
|
||||
short x3;
|
||||
short x4;
|
||||
short x5;
|
||||
short x6;
|
||||
short x7;
|
||||
short x8;
|
||||
short x9;
|
||||
short x10;
|
||||
short x11;
|
||||
short x12;
|
||||
short x13;
|
||||
};
|
||||
|
||||
struct point14 demo14(struct point14 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point15 {
|
||||
short x0;
|
||||
short x1;
|
||||
short x2;
|
||||
short x3;
|
||||
short x4;
|
||||
short x5;
|
||||
short x6;
|
||||
short x7;
|
||||
short x8;
|
||||
short x9;
|
||||
short x10;
|
||||
short x11;
|
||||
short x12;
|
||||
short x13;
|
||||
short x14;
|
||||
};
|
||||
|
||||
struct point15 demo15(struct point15 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point16 {
|
||||
short x0;
|
||||
short x1;
|
||||
short x2;
|
||||
short x3;
|
||||
short x4;
|
||||
short x5;
|
||||
short x6;
|
||||
short x7;
|
||||
short x8;
|
||||
short x9;
|
||||
short x10;
|
||||
short x11;
|
||||
short x12;
|
||||
short x13;
|
||||
short x14;
|
||||
short x15;
|
||||
};
|
||||
|
||||
struct point16 demo16(struct point16 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point17 {
|
||||
short x0;
|
||||
short x1;
|
||||
short x2;
|
||||
short x3;
|
||||
short x4;
|
||||
short x5;
|
||||
short x6;
|
||||
short x7;
|
||||
short x8;
|
||||
short x9;
|
||||
short x10;
|
||||
short x11;
|
||||
short x12;
|
||||
short x13;
|
||||
short x14;
|
||||
short x15;
|
||||
short x16;
|
||||
};
|
||||
|
||||
struct point17 demo17(struct point17 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point18 {
|
||||
short x0;
|
||||
short x1;
|
||||
short x2;
|
||||
short x3;
|
||||
short x4;
|
||||
short x5;
|
||||
short x6;
|
||||
short x7;
|
||||
short x8;
|
||||
short x9;
|
||||
short x10;
|
||||
short x11;
|
||||
short x12;
|
||||
short x13;
|
||||
short x14;
|
||||
short x15;
|
||||
short x16;
|
||||
short x17;
|
||||
};
|
||||
|
||||
struct point18 demo18(struct point18 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point19 {
|
||||
short x0;
|
||||
short x1;
|
||||
short x2;
|
||||
short x3;
|
||||
short x4;
|
||||
short x5;
|
||||
short x6;
|
||||
short x7;
|
||||
short x8;
|
||||
short x9;
|
||||
short x10;
|
||||
short x11;
|
||||
short x12;
|
||||
short x13;
|
||||
short x14;
|
||||
short x15;
|
||||
short x16;
|
||||
short x17;
|
||||
short x18;
|
||||
};
|
||||
|
||||
struct point19 demo19(struct point19 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point20 {
|
||||
short x0;
|
||||
short x1;
|
||||
short x2;
|
||||
short x3;
|
||||
short x4;
|
||||
short x5;
|
||||
short x6;
|
||||
short x7;
|
||||
short x8;
|
||||
short x9;
|
||||
short x10;
|
||||
short x11;
|
||||
short x12;
|
||||
short x13;
|
||||
short x14;
|
||||
short x15;
|
||||
short x16;
|
||||
short x17;
|
||||
short x18;
|
||||
short x19;
|
||||
};
|
||||
|
||||
struct point20 demo20(struct point20 a) {
|
||||
return a;
|
||||
}
|
||||
350
internal/cabi/_testdata/wrap/struct_int32.c
Normal file
350
internal/cabi/_testdata/wrap/struct_int32.c
Normal file
@@ -0,0 +1,350 @@
|
||||
|
||||
struct point1 {
|
||||
int x0;
|
||||
};
|
||||
|
||||
struct point1 demo1(struct point1 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point2 {
|
||||
int x0;
|
||||
int x1;
|
||||
};
|
||||
|
||||
struct point2 demo2(struct point2 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point3 {
|
||||
int x0;
|
||||
int x1;
|
||||
int x2;
|
||||
};
|
||||
|
||||
struct point3 demo3(struct point3 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point4 {
|
||||
int x0;
|
||||
int x1;
|
||||
int x2;
|
||||
int x3;
|
||||
};
|
||||
|
||||
struct point4 demo4(struct point4 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point5 {
|
||||
int x0;
|
||||
int x1;
|
||||
int x2;
|
||||
int x3;
|
||||
int x4;
|
||||
};
|
||||
|
||||
struct point5 demo5(struct point5 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point6 {
|
||||
int x0;
|
||||
int x1;
|
||||
int x2;
|
||||
int x3;
|
||||
int x4;
|
||||
int x5;
|
||||
};
|
||||
|
||||
struct point6 demo6(struct point6 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point7 {
|
||||
int x0;
|
||||
int x1;
|
||||
int x2;
|
||||
int x3;
|
||||
int x4;
|
||||
int x5;
|
||||
int x6;
|
||||
};
|
||||
|
||||
struct point7 demo7(struct point7 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point8 {
|
||||
int x0;
|
||||
int x1;
|
||||
int x2;
|
||||
int x3;
|
||||
int x4;
|
||||
int x5;
|
||||
int x6;
|
||||
int x7;
|
||||
};
|
||||
|
||||
struct point8 demo8(struct point8 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point9 {
|
||||
int x0;
|
||||
int x1;
|
||||
int x2;
|
||||
int x3;
|
||||
int x4;
|
||||
int x5;
|
||||
int x6;
|
||||
int x7;
|
||||
int x8;
|
||||
};
|
||||
|
||||
struct point9 demo9(struct point9 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point10 {
|
||||
int x0;
|
||||
int x1;
|
||||
int x2;
|
||||
int x3;
|
||||
int x4;
|
||||
int x5;
|
||||
int x6;
|
||||
int x7;
|
||||
int x8;
|
||||
int x9;
|
||||
};
|
||||
|
||||
struct point10 demo10(struct point10 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point11 {
|
||||
int x0;
|
||||
int x1;
|
||||
int x2;
|
||||
int x3;
|
||||
int x4;
|
||||
int x5;
|
||||
int x6;
|
||||
int x7;
|
||||
int x8;
|
||||
int x9;
|
||||
int x10;
|
||||
};
|
||||
|
||||
struct point11 demo11(struct point11 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point12 {
|
||||
int x0;
|
||||
int x1;
|
||||
int x2;
|
||||
int x3;
|
||||
int x4;
|
||||
int x5;
|
||||
int x6;
|
||||
int x7;
|
||||
int x8;
|
||||
int x9;
|
||||
int x10;
|
||||
int x11;
|
||||
};
|
||||
|
||||
struct point12 demo12(struct point12 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point13 {
|
||||
int x0;
|
||||
int x1;
|
||||
int x2;
|
||||
int x3;
|
||||
int x4;
|
||||
int x5;
|
||||
int x6;
|
||||
int x7;
|
||||
int x8;
|
||||
int x9;
|
||||
int x10;
|
||||
int x11;
|
||||
int x12;
|
||||
};
|
||||
|
||||
struct point13 demo13(struct point13 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point14 {
|
||||
int x0;
|
||||
int x1;
|
||||
int x2;
|
||||
int x3;
|
||||
int x4;
|
||||
int x5;
|
||||
int x6;
|
||||
int x7;
|
||||
int x8;
|
||||
int x9;
|
||||
int x10;
|
||||
int x11;
|
||||
int x12;
|
||||
int x13;
|
||||
};
|
||||
|
||||
struct point14 demo14(struct point14 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point15 {
|
||||
int x0;
|
||||
int x1;
|
||||
int x2;
|
||||
int x3;
|
||||
int x4;
|
||||
int x5;
|
||||
int x6;
|
||||
int x7;
|
||||
int x8;
|
||||
int x9;
|
||||
int x10;
|
||||
int x11;
|
||||
int x12;
|
||||
int x13;
|
||||
int x14;
|
||||
};
|
||||
|
||||
struct point15 demo15(struct point15 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point16 {
|
||||
int x0;
|
||||
int x1;
|
||||
int x2;
|
||||
int x3;
|
||||
int x4;
|
||||
int x5;
|
||||
int x6;
|
||||
int x7;
|
||||
int x8;
|
||||
int x9;
|
||||
int x10;
|
||||
int x11;
|
||||
int x12;
|
||||
int x13;
|
||||
int x14;
|
||||
int x15;
|
||||
};
|
||||
|
||||
struct point16 demo16(struct point16 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point17 {
|
||||
int x0;
|
||||
int x1;
|
||||
int x2;
|
||||
int x3;
|
||||
int x4;
|
||||
int x5;
|
||||
int x6;
|
||||
int x7;
|
||||
int x8;
|
||||
int x9;
|
||||
int x10;
|
||||
int x11;
|
||||
int x12;
|
||||
int x13;
|
||||
int x14;
|
||||
int x15;
|
||||
int x16;
|
||||
};
|
||||
|
||||
struct point17 demo17(struct point17 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point18 {
|
||||
int x0;
|
||||
int x1;
|
||||
int x2;
|
||||
int x3;
|
||||
int x4;
|
||||
int x5;
|
||||
int x6;
|
||||
int x7;
|
||||
int x8;
|
||||
int x9;
|
||||
int x10;
|
||||
int x11;
|
||||
int x12;
|
||||
int x13;
|
||||
int x14;
|
||||
int x15;
|
||||
int x16;
|
||||
int x17;
|
||||
};
|
||||
|
||||
struct point18 demo18(struct point18 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point19 {
|
||||
int x0;
|
||||
int x1;
|
||||
int x2;
|
||||
int x3;
|
||||
int x4;
|
||||
int x5;
|
||||
int x6;
|
||||
int x7;
|
||||
int x8;
|
||||
int x9;
|
||||
int x10;
|
||||
int x11;
|
||||
int x12;
|
||||
int x13;
|
||||
int x14;
|
||||
int x15;
|
||||
int x16;
|
||||
int x17;
|
||||
int x18;
|
||||
};
|
||||
|
||||
struct point19 demo19(struct point19 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point20 {
|
||||
int x0;
|
||||
int x1;
|
||||
int x2;
|
||||
int x3;
|
||||
int x4;
|
||||
int x5;
|
||||
int x6;
|
||||
int x7;
|
||||
int x8;
|
||||
int x9;
|
||||
int x10;
|
||||
int x11;
|
||||
int x12;
|
||||
int x13;
|
||||
int x14;
|
||||
int x15;
|
||||
int x16;
|
||||
int x17;
|
||||
int x18;
|
||||
int x19;
|
||||
};
|
||||
|
||||
struct point20 demo20(struct point20 a) {
|
||||
return a;
|
||||
}
|
||||
350
internal/cabi/_testdata/wrap/struct_int64.c
Normal file
350
internal/cabi/_testdata/wrap/struct_int64.c
Normal file
@@ -0,0 +1,350 @@
|
||||
|
||||
struct point1 {
|
||||
long long x0;
|
||||
};
|
||||
|
||||
struct point1 demo1(struct point1 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point2 {
|
||||
long long x0;
|
||||
long long x1;
|
||||
};
|
||||
|
||||
struct point2 demo2(struct point2 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point3 {
|
||||
long long x0;
|
||||
long long x1;
|
||||
long long x2;
|
||||
};
|
||||
|
||||
struct point3 demo3(struct point3 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point4 {
|
||||
long long x0;
|
||||
long long x1;
|
||||
long long x2;
|
||||
long long x3;
|
||||
};
|
||||
|
||||
struct point4 demo4(struct point4 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point5 {
|
||||
long long x0;
|
||||
long long x1;
|
||||
long long x2;
|
||||
long long x3;
|
||||
long long x4;
|
||||
};
|
||||
|
||||
struct point5 demo5(struct point5 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point6 {
|
||||
long long x0;
|
||||
long long x1;
|
||||
long long x2;
|
||||
long long x3;
|
||||
long long x4;
|
||||
long long x5;
|
||||
};
|
||||
|
||||
struct point6 demo6(struct point6 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point7 {
|
||||
long long x0;
|
||||
long long x1;
|
||||
long long x2;
|
||||
long long x3;
|
||||
long long x4;
|
||||
long long x5;
|
||||
long long x6;
|
||||
};
|
||||
|
||||
struct point7 demo7(struct point7 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point8 {
|
||||
long long x0;
|
||||
long long x1;
|
||||
long long x2;
|
||||
long long x3;
|
||||
long long x4;
|
||||
long long x5;
|
||||
long long x6;
|
||||
long long x7;
|
||||
};
|
||||
|
||||
struct point8 demo8(struct point8 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point9 {
|
||||
long long x0;
|
||||
long long x1;
|
||||
long long x2;
|
||||
long long x3;
|
||||
long long x4;
|
||||
long long x5;
|
||||
long long x6;
|
||||
long long x7;
|
||||
long long x8;
|
||||
};
|
||||
|
||||
struct point9 demo9(struct point9 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point10 {
|
||||
long long x0;
|
||||
long long x1;
|
||||
long long x2;
|
||||
long long x3;
|
||||
long long x4;
|
||||
long long x5;
|
||||
long long x6;
|
||||
long long x7;
|
||||
long long x8;
|
||||
long long x9;
|
||||
};
|
||||
|
||||
struct point10 demo10(struct point10 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point11 {
|
||||
long long x0;
|
||||
long long x1;
|
||||
long long x2;
|
||||
long long x3;
|
||||
long long x4;
|
||||
long long x5;
|
||||
long long x6;
|
||||
long long x7;
|
||||
long long x8;
|
||||
long long x9;
|
||||
long long x10;
|
||||
};
|
||||
|
||||
struct point11 demo11(struct point11 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point12 {
|
||||
long long x0;
|
||||
long long x1;
|
||||
long long x2;
|
||||
long long x3;
|
||||
long long x4;
|
||||
long long x5;
|
||||
long long x6;
|
||||
long long x7;
|
||||
long long x8;
|
||||
long long x9;
|
||||
long long x10;
|
||||
long long x11;
|
||||
};
|
||||
|
||||
struct point12 demo12(struct point12 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point13 {
|
||||
long long x0;
|
||||
long long x1;
|
||||
long long x2;
|
||||
long long x3;
|
||||
long long x4;
|
||||
long long x5;
|
||||
long long x6;
|
||||
long long x7;
|
||||
long long x8;
|
||||
long long x9;
|
||||
long long x10;
|
||||
long long x11;
|
||||
long long x12;
|
||||
};
|
||||
|
||||
struct point13 demo13(struct point13 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point14 {
|
||||
long long x0;
|
||||
long long x1;
|
||||
long long x2;
|
||||
long long x3;
|
||||
long long x4;
|
||||
long long x5;
|
||||
long long x6;
|
||||
long long x7;
|
||||
long long x8;
|
||||
long long x9;
|
||||
long long x10;
|
||||
long long x11;
|
||||
long long x12;
|
||||
long long x13;
|
||||
};
|
||||
|
||||
struct point14 demo14(struct point14 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point15 {
|
||||
long long x0;
|
||||
long long x1;
|
||||
long long x2;
|
||||
long long x3;
|
||||
long long x4;
|
||||
long long x5;
|
||||
long long x6;
|
||||
long long x7;
|
||||
long long x8;
|
||||
long long x9;
|
||||
long long x10;
|
||||
long long x11;
|
||||
long long x12;
|
||||
long long x13;
|
||||
long long x14;
|
||||
};
|
||||
|
||||
struct point15 demo15(struct point15 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point16 {
|
||||
long long x0;
|
||||
long long x1;
|
||||
long long x2;
|
||||
long long x3;
|
||||
long long x4;
|
||||
long long x5;
|
||||
long long x6;
|
||||
long long x7;
|
||||
long long x8;
|
||||
long long x9;
|
||||
long long x10;
|
||||
long long x11;
|
||||
long long x12;
|
||||
long long x13;
|
||||
long long x14;
|
||||
long long x15;
|
||||
};
|
||||
|
||||
struct point16 demo16(struct point16 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point17 {
|
||||
long long x0;
|
||||
long long x1;
|
||||
long long x2;
|
||||
long long x3;
|
||||
long long x4;
|
||||
long long x5;
|
||||
long long x6;
|
||||
long long x7;
|
||||
long long x8;
|
||||
long long x9;
|
||||
long long x10;
|
||||
long long x11;
|
||||
long long x12;
|
||||
long long x13;
|
||||
long long x14;
|
||||
long long x15;
|
||||
long long x16;
|
||||
};
|
||||
|
||||
struct point17 demo17(struct point17 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point18 {
|
||||
long long x0;
|
||||
long long x1;
|
||||
long long x2;
|
||||
long long x3;
|
||||
long long x4;
|
||||
long long x5;
|
||||
long long x6;
|
||||
long long x7;
|
||||
long long x8;
|
||||
long long x9;
|
||||
long long x10;
|
||||
long long x11;
|
||||
long long x12;
|
||||
long long x13;
|
||||
long long x14;
|
||||
long long x15;
|
||||
long long x16;
|
||||
long long x17;
|
||||
};
|
||||
|
||||
struct point18 demo18(struct point18 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point19 {
|
||||
long long x0;
|
||||
long long x1;
|
||||
long long x2;
|
||||
long long x3;
|
||||
long long x4;
|
||||
long long x5;
|
||||
long long x6;
|
||||
long long x7;
|
||||
long long x8;
|
||||
long long x9;
|
||||
long long x10;
|
||||
long long x11;
|
||||
long long x12;
|
||||
long long x13;
|
||||
long long x14;
|
||||
long long x15;
|
||||
long long x16;
|
||||
long long x17;
|
||||
long long x18;
|
||||
};
|
||||
|
||||
struct point19 demo19(struct point19 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point20 {
|
||||
long long x0;
|
||||
long long x1;
|
||||
long long x2;
|
||||
long long x3;
|
||||
long long x4;
|
||||
long long x5;
|
||||
long long x6;
|
||||
long long x7;
|
||||
long long x8;
|
||||
long long x9;
|
||||
long long x10;
|
||||
long long x11;
|
||||
long long x12;
|
||||
long long x13;
|
||||
long long x14;
|
||||
long long x15;
|
||||
long long x16;
|
||||
long long x17;
|
||||
long long x18;
|
||||
long long x19;
|
||||
};
|
||||
|
||||
struct point20 demo20(struct point20 a) {
|
||||
return a;
|
||||
}
|
||||
350
internal/cabi/_testdata/wrap/struct_int8.c
Normal file
350
internal/cabi/_testdata/wrap/struct_int8.c
Normal file
@@ -0,0 +1,350 @@
|
||||
|
||||
struct point1 {
|
||||
char x0;
|
||||
};
|
||||
|
||||
struct point1 demo1(struct point1 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point2 {
|
||||
char x0;
|
||||
char x1;
|
||||
};
|
||||
|
||||
struct point2 demo2(struct point2 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point3 {
|
||||
char x0;
|
||||
char x1;
|
||||
char x2;
|
||||
};
|
||||
|
||||
struct point3 demo3(struct point3 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point4 {
|
||||
char x0;
|
||||
char x1;
|
||||
char x2;
|
||||
char x3;
|
||||
};
|
||||
|
||||
struct point4 demo4(struct point4 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point5 {
|
||||
char x0;
|
||||
char x1;
|
||||
char x2;
|
||||
char x3;
|
||||
char x4;
|
||||
};
|
||||
|
||||
struct point5 demo5(struct point5 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point6 {
|
||||
char x0;
|
||||
char x1;
|
||||
char x2;
|
||||
char x3;
|
||||
char x4;
|
||||
char x5;
|
||||
};
|
||||
|
||||
struct point6 demo6(struct point6 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point7 {
|
||||
char x0;
|
||||
char x1;
|
||||
char x2;
|
||||
char x3;
|
||||
char x4;
|
||||
char x5;
|
||||
char x6;
|
||||
};
|
||||
|
||||
struct point7 demo7(struct point7 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point8 {
|
||||
char x0;
|
||||
char x1;
|
||||
char x2;
|
||||
char x3;
|
||||
char x4;
|
||||
char x5;
|
||||
char x6;
|
||||
char x7;
|
||||
};
|
||||
|
||||
struct point8 demo8(struct point8 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point9 {
|
||||
char x0;
|
||||
char x1;
|
||||
char x2;
|
||||
char x3;
|
||||
char x4;
|
||||
char x5;
|
||||
char x6;
|
||||
char x7;
|
||||
char x8;
|
||||
};
|
||||
|
||||
struct point9 demo9(struct point9 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point10 {
|
||||
char x0;
|
||||
char x1;
|
||||
char x2;
|
||||
char x3;
|
||||
char x4;
|
||||
char x5;
|
||||
char x6;
|
||||
char x7;
|
||||
char x8;
|
||||
char x9;
|
||||
};
|
||||
|
||||
struct point10 demo10(struct point10 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point11 {
|
||||
char x0;
|
||||
char x1;
|
||||
char x2;
|
||||
char x3;
|
||||
char x4;
|
||||
char x5;
|
||||
char x6;
|
||||
char x7;
|
||||
char x8;
|
||||
char x9;
|
||||
char x10;
|
||||
};
|
||||
|
||||
struct point11 demo11(struct point11 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point12 {
|
||||
char x0;
|
||||
char x1;
|
||||
char x2;
|
||||
char x3;
|
||||
char x4;
|
||||
char x5;
|
||||
char x6;
|
||||
char x7;
|
||||
char x8;
|
||||
char x9;
|
||||
char x10;
|
||||
char x11;
|
||||
};
|
||||
|
||||
struct point12 demo12(struct point12 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point13 {
|
||||
char x0;
|
||||
char x1;
|
||||
char x2;
|
||||
char x3;
|
||||
char x4;
|
||||
char x5;
|
||||
char x6;
|
||||
char x7;
|
||||
char x8;
|
||||
char x9;
|
||||
char x10;
|
||||
char x11;
|
||||
char x12;
|
||||
};
|
||||
|
||||
struct point13 demo13(struct point13 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point14 {
|
||||
char x0;
|
||||
char x1;
|
||||
char x2;
|
||||
char x3;
|
||||
char x4;
|
||||
char x5;
|
||||
char x6;
|
||||
char x7;
|
||||
char x8;
|
||||
char x9;
|
||||
char x10;
|
||||
char x11;
|
||||
char x12;
|
||||
char x13;
|
||||
};
|
||||
|
||||
struct point14 demo14(struct point14 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point15 {
|
||||
char x0;
|
||||
char x1;
|
||||
char x2;
|
||||
char x3;
|
||||
char x4;
|
||||
char x5;
|
||||
char x6;
|
||||
char x7;
|
||||
char x8;
|
||||
char x9;
|
||||
char x10;
|
||||
char x11;
|
||||
char x12;
|
||||
char x13;
|
||||
char x14;
|
||||
};
|
||||
|
||||
struct point15 demo15(struct point15 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point16 {
|
||||
char x0;
|
||||
char x1;
|
||||
char x2;
|
||||
char x3;
|
||||
char x4;
|
||||
char x5;
|
||||
char x6;
|
||||
char x7;
|
||||
char x8;
|
||||
char x9;
|
||||
char x10;
|
||||
char x11;
|
||||
char x12;
|
||||
char x13;
|
||||
char x14;
|
||||
char x15;
|
||||
};
|
||||
|
||||
struct point16 demo16(struct point16 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point17 {
|
||||
char x0;
|
||||
char x1;
|
||||
char x2;
|
||||
char x3;
|
||||
char x4;
|
||||
char x5;
|
||||
char x6;
|
||||
char x7;
|
||||
char x8;
|
||||
char x9;
|
||||
char x10;
|
||||
char x11;
|
||||
char x12;
|
||||
char x13;
|
||||
char x14;
|
||||
char x15;
|
||||
char x16;
|
||||
};
|
||||
|
||||
struct point17 demo17(struct point17 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point18 {
|
||||
char x0;
|
||||
char x1;
|
||||
char x2;
|
||||
char x3;
|
||||
char x4;
|
||||
char x5;
|
||||
char x6;
|
||||
char x7;
|
||||
char x8;
|
||||
char x9;
|
||||
char x10;
|
||||
char x11;
|
||||
char x12;
|
||||
char x13;
|
||||
char x14;
|
||||
char x15;
|
||||
char x16;
|
||||
char x17;
|
||||
};
|
||||
|
||||
struct point18 demo18(struct point18 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point19 {
|
||||
char x0;
|
||||
char x1;
|
||||
char x2;
|
||||
char x3;
|
||||
char x4;
|
||||
char x5;
|
||||
char x6;
|
||||
char x7;
|
||||
char x8;
|
||||
char x9;
|
||||
char x10;
|
||||
char x11;
|
||||
char x12;
|
||||
char x13;
|
||||
char x14;
|
||||
char x15;
|
||||
char x16;
|
||||
char x17;
|
||||
char x18;
|
||||
};
|
||||
|
||||
struct point19 demo19(struct point19 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point20 {
|
||||
char x0;
|
||||
char x1;
|
||||
char x2;
|
||||
char x3;
|
||||
char x4;
|
||||
char x5;
|
||||
char x6;
|
||||
char x7;
|
||||
char x8;
|
||||
char x9;
|
||||
char x10;
|
||||
char x11;
|
||||
char x12;
|
||||
char x13;
|
||||
char x14;
|
||||
char x15;
|
||||
char x16;
|
||||
char x17;
|
||||
char x18;
|
||||
char x19;
|
||||
};
|
||||
|
||||
struct point20 demo20(struct point20 a) {
|
||||
return a;
|
||||
}
|
||||
350
internal/cabi/_testdata/wrap/struct_uintptr.c
Normal file
350
internal/cabi/_testdata/wrap/struct_uintptr.c
Normal file
@@ -0,0 +1,350 @@
|
||||
|
||||
struct point1 {
|
||||
void* x0;
|
||||
};
|
||||
|
||||
struct point1 demo1(struct point1 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point2 {
|
||||
void* x0;
|
||||
void* x1;
|
||||
};
|
||||
|
||||
struct point2 demo2(struct point2 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point3 {
|
||||
void* x0;
|
||||
void* x1;
|
||||
void* x2;
|
||||
};
|
||||
|
||||
struct point3 demo3(struct point3 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point4 {
|
||||
void* x0;
|
||||
void* x1;
|
||||
void* x2;
|
||||
void* x3;
|
||||
};
|
||||
|
||||
struct point4 demo4(struct point4 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point5 {
|
||||
void* x0;
|
||||
void* x1;
|
||||
void* x2;
|
||||
void* x3;
|
||||
void* x4;
|
||||
};
|
||||
|
||||
struct point5 demo5(struct point5 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point6 {
|
||||
void* x0;
|
||||
void* x1;
|
||||
void* x2;
|
||||
void* x3;
|
||||
void* x4;
|
||||
void* x5;
|
||||
};
|
||||
|
||||
struct point6 demo6(struct point6 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point7 {
|
||||
void* x0;
|
||||
void* x1;
|
||||
void* x2;
|
||||
void* x3;
|
||||
void* x4;
|
||||
void* x5;
|
||||
void* x6;
|
||||
};
|
||||
|
||||
struct point7 demo7(struct point7 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point8 {
|
||||
void* x0;
|
||||
void* x1;
|
||||
void* x2;
|
||||
void* x3;
|
||||
void* x4;
|
||||
void* x5;
|
||||
void* x6;
|
||||
void* x7;
|
||||
};
|
||||
|
||||
struct point8 demo8(struct point8 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point9 {
|
||||
void* x0;
|
||||
void* x1;
|
||||
void* x2;
|
||||
void* x3;
|
||||
void* x4;
|
||||
void* x5;
|
||||
void* x6;
|
||||
void* x7;
|
||||
void* x8;
|
||||
};
|
||||
|
||||
struct point9 demo9(struct point9 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point10 {
|
||||
void* x0;
|
||||
void* x1;
|
||||
void* x2;
|
||||
void* x3;
|
||||
void* x4;
|
||||
void* x5;
|
||||
void* x6;
|
||||
void* x7;
|
||||
void* x8;
|
||||
void* x9;
|
||||
};
|
||||
|
||||
struct point10 demo10(struct point10 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point11 {
|
||||
void* x0;
|
||||
void* x1;
|
||||
void* x2;
|
||||
void* x3;
|
||||
void* x4;
|
||||
void* x5;
|
||||
void* x6;
|
||||
void* x7;
|
||||
void* x8;
|
||||
void* x9;
|
||||
void* x10;
|
||||
};
|
||||
|
||||
struct point11 demo11(struct point11 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point12 {
|
||||
void* x0;
|
||||
void* x1;
|
||||
void* x2;
|
||||
void* x3;
|
||||
void* x4;
|
||||
void* x5;
|
||||
void* x6;
|
||||
void* x7;
|
||||
void* x8;
|
||||
void* x9;
|
||||
void* x10;
|
||||
void* x11;
|
||||
};
|
||||
|
||||
struct point12 demo12(struct point12 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point13 {
|
||||
void* x0;
|
||||
void* x1;
|
||||
void* x2;
|
||||
void* x3;
|
||||
void* x4;
|
||||
void* x5;
|
||||
void* x6;
|
||||
void* x7;
|
||||
void* x8;
|
||||
void* x9;
|
||||
void* x10;
|
||||
void* x11;
|
||||
void* x12;
|
||||
};
|
||||
|
||||
struct point13 demo13(struct point13 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point14 {
|
||||
void* x0;
|
||||
void* x1;
|
||||
void* x2;
|
||||
void* x3;
|
||||
void* x4;
|
||||
void* x5;
|
||||
void* x6;
|
||||
void* x7;
|
||||
void* x8;
|
||||
void* x9;
|
||||
void* x10;
|
||||
void* x11;
|
||||
void* x12;
|
||||
void* x13;
|
||||
};
|
||||
|
||||
struct point14 demo14(struct point14 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point15 {
|
||||
void* x0;
|
||||
void* x1;
|
||||
void* x2;
|
||||
void* x3;
|
||||
void* x4;
|
||||
void* x5;
|
||||
void* x6;
|
||||
void* x7;
|
||||
void* x8;
|
||||
void* x9;
|
||||
void* x10;
|
||||
void* x11;
|
||||
void* x12;
|
||||
void* x13;
|
||||
void* x14;
|
||||
};
|
||||
|
||||
struct point15 demo15(struct point15 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point16 {
|
||||
void* x0;
|
||||
void* x1;
|
||||
void* x2;
|
||||
void* x3;
|
||||
void* x4;
|
||||
void* x5;
|
||||
void* x6;
|
||||
void* x7;
|
||||
void* x8;
|
||||
void* x9;
|
||||
void* x10;
|
||||
void* x11;
|
||||
void* x12;
|
||||
void* x13;
|
||||
void* x14;
|
||||
void* x15;
|
||||
};
|
||||
|
||||
struct point16 demo16(struct point16 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point17 {
|
||||
void* x0;
|
||||
void* x1;
|
||||
void* x2;
|
||||
void* x3;
|
||||
void* x4;
|
||||
void* x5;
|
||||
void* x6;
|
||||
void* x7;
|
||||
void* x8;
|
||||
void* x9;
|
||||
void* x10;
|
||||
void* x11;
|
||||
void* x12;
|
||||
void* x13;
|
||||
void* x14;
|
||||
void* x15;
|
||||
void* x16;
|
||||
};
|
||||
|
||||
struct point17 demo17(struct point17 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point18 {
|
||||
void* x0;
|
||||
void* x1;
|
||||
void* x2;
|
||||
void* x3;
|
||||
void* x4;
|
||||
void* x5;
|
||||
void* x6;
|
||||
void* x7;
|
||||
void* x8;
|
||||
void* x9;
|
||||
void* x10;
|
||||
void* x11;
|
||||
void* x12;
|
||||
void* x13;
|
||||
void* x14;
|
||||
void* x15;
|
||||
void* x16;
|
||||
void* x17;
|
||||
};
|
||||
|
||||
struct point18 demo18(struct point18 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point19 {
|
||||
void* x0;
|
||||
void* x1;
|
||||
void* x2;
|
||||
void* x3;
|
||||
void* x4;
|
||||
void* x5;
|
||||
void* x6;
|
||||
void* x7;
|
||||
void* x8;
|
||||
void* x9;
|
||||
void* x10;
|
||||
void* x11;
|
||||
void* x12;
|
||||
void* x13;
|
||||
void* x14;
|
||||
void* x15;
|
||||
void* x16;
|
||||
void* x17;
|
||||
void* x18;
|
||||
};
|
||||
|
||||
struct point19 demo19(struct point19 a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
struct point20 {
|
||||
void* x0;
|
||||
void* x1;
|
||||
void* x2;
|
||||
void* x3;
|
||||
void* x4;
|
||||
void* x5;
|
||||
void* x6;
|
||||
void* x7;
|
||||
void* x8;
|
||||
void* x9;
|
||||
void* x10;
|
||||
void* x11;
|
||||
void* x12;
|
||||
void* x13;
|
||||
void* x14;
|
||||
void* x15;
|
||||
void* x16;
|
||||
void* x17;
|
||||
void* x18;
|
||||
void* x19;
|
||||
};
|
||||
|
||||
struct point20 demo20(struct point20 a) {
|
||||
return a;
|
||||
}
|
||||
Reference in New Issue
Block a user