aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test3.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test3.c')
-rw-r--r--test/test3.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/test/test3.c b/test/test3.c
index 35e5e8b..bf53396 100644
--- a/test/test3.c
+++ b/test/test3.c
@@ -8,11 +8,22 @@ int t(unsigned short *p, short i) {
return p[i];
}
-#if 1
+int shcl(int a, int b) {
+ return a << (b+1);
+}
+
+struct p { long x,y; };
+struct p divsh(int a) {
+ struct p p;
+ p.x = a << (a / 5);
+ p.y = a;
+ return p;
+}
+
+#if 0
long test(long x) {
return x + (long)"abc";
}
-#endif
double ff(double x, double y)
{
@@ -26,3 +37,4 @@ void testss() {
long fma(long x, long y) {
return x + (y <<1) - 2147483648;}
+#endif