aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test3.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test3.c')
-rw-r--r--test/test3.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test3.c b/test/test3.c
index 8bd9020..74f4c00 100644
--- a/test/test3.c
+++ b/test/test3.c
@@ -12,10 +12,13 @@ int shcl(int a, int b) {
return a << (b+1);
}
+int zero() { return 0; }
+float fzero() { return 0.0f; }
+
struct p { long x,y; };
struct p divsh(int a) {
struct p p;
- p.x = a << (a / 5);
+ p.x = a << (a % 5);
p.y = a;
return p;
}