api: add iso646, langinfo and libgen
[libc-test] / src / api / iso646.c
diff --git a/src/api/iso646.c b/src/api/iso646.c
new file mode 100644 (file)
index 0000000..ec0cdd9
--- /dev/null
@@ -0,0 +1,16 @@
+#include <iso646.h>
+#define C(n) switch(n){case n:;}
+static void f(){
+int i = 0;
+i and_eq 1;
+i or_eq 1;
+i xor_eq 1;
+C(0 not_eq 1)
+C(0 and 1)
+C(0 or 1)
+C(0 bitand 1)
+C(0 bitor 1)
+C(0 xor 1)
+C(not 0)
+C(compl 0)
+}