Files
llgo/internal/cabi/_testdata/wrap/array_pointer.c

161 lines
1.9 KiB
C
Raw Normal View History

2025-08-12 12:04:32 +08:00
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;
}