diff --git a/src/api/stdbool.c b/src/api/stdbool.c new file mode 100644 index 0000000..3eb9736 --- /dev/null +++ b/src/api/stdbool.c @@ -0,0 +1,10 @@ +#include +#define T(t) (t*)0; +#define C(n) switch(n){case n:;} +static void f() +{ +T(bool) +C(true) +C(false) +C(__bool_true_false_are_defined) +} diff --git a/src/api/stddef.c b/src/api/stddef.c new file mode 100644 index 0000000..3f7664e --- /dev/null +++ b/src/api/stddef.c @@ -0,0 +1,11 @@ +#include +#define T(t) (t*)0; +#define C(n) switch(n){case n:;} +static void f() +{ +{void *p=NULL;} +C(offsetof(struct{int i;}, i)) +T(ptrdiff_t) +T(wchar_t) +T(size_t) +}