api: add stdbool and stddef
[libc-test] / src / api / stddef.c
diff --git a/src/api/stddef.c b/src/api/stddef.c
new file mode 100644 (file)
index 0000000..3f7664e
--- /dev/null
@@ -0,0 +1,11 @@
+#include <stddef.h>
+#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)
+}