aboutsummaryrefslogtreecommitdiffhomepage
path: root/test.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2023-05-31 08:57:22 +0200
committerlemon <lsof@mailbox.org>2023-05-31 09:16:18 +0200
commit5e46b36476c57418c0bd3cfced2d4c63eb7d1048 (patch)
tree3d19fdcfa04362f12848e0c9a5a105d9c984fd0e /test.c
parent05c305bee19221e3b5b9557267c5cfa7525f752f (diff)
'!' optimizations
Diffstat (limited to 'test.c')
-rw-r--r--test.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test.c b/test.c
index e16e415..5adb14f 100644
--- a/test.c
+++ b/test.c
@@ -7,6 +7,8 @@ wawa
#else
boop
#endif
+
+#define NULL ((void *)0)
int glob [ wow+wow];
struct foo {
@@ -32,4 +34,14 @@ int test4(int c) {
: 0;
}
+int test5(int *p)
+{
+ return p ? *p : 0;
+}
+
+int test6(int x)
+{
+ return !!!!x;
+}
+
//