[KLIB tool] Add tests for dumping metadata signatures

This commit is contained in:
Dmitriy Dolovov
2023-10-25 12:26:02 +02:00
committed by Space Team
parent 88a297b022
commit e18a2d0a2e
25 changed files with 1004 additions and 41 deletions
@@ -0,0 +1,36 @@
## FIR_IDENTICAL
language = C
package = just_cinterop_c
---
typedef struct my_struct {
int i;
long l;
} my_struct_t;
static short do_short(short x) {
return x;
}
static int do_int(int x) {
return x;
}
static long do_long(long x) {
return x;
}
static long long do_long_long(long long x) {
return x;
}
static void* do_void_ptr(void* x) {
return x;
}
static my_struct_t do_my_struct_t(my_struct_t x) {
return x;
}
static my_struct_t* do_my_struct_t_ptr(my_struct_t* x) {
return x;
}