This commit is contained in:
Masashi 2025-12-16 02:46:45 +05:30
commit 62b78ddad2
4 changed files with 128 additions and 26 deletions

19
tests/traits.c Normal file
View file

@ -0,0 +1,19 @@
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct Number {
int value;
};
char *Number_show(struct Number self);
int main(void);
char *Number_show(struct Number self) { return "number"; }
int main(void) {
struct Number number = (struct Number){.value = 40};
Number_show(number);
return 0;
}