Added < and = test with globals only
authorSnafu <stuff@c-gabriel.at>
Mon, 17 May 2010 18:22:24 +0000 (20:22 +0200)
committerSnafu <stuff@c-gabriel.at>
Mon, 17 May 2010 18:22:24 +0000 (20:22 +0200)
codea/snafu_06.0
codea/snafu_06.call
codea/snafu_06.instr

index fc32cff6248d5cd323260e2969327b4841fda532..a4acd84c3a9e2cab1418f9636bedb2507d70d679 100644 (file)
@@ -1,3 +1,5 @@
+struct a b end;
+
 method test64()
        return this - -2139062144;
 end;
 method test64()
        return this - -2139062144;
 end;
@@ -9,3 +11,11 @@ end;
 method num2()
        return 15 - (4 - 2 - 6 - 7);
 end;
 method num2()
        return 15 - (4 - 2 - 6 - 7);
 end;
+
+method globcmp()
+       return this.a < this.b;
+end;
+
+method globcmp2()
+       return this.a = this.b;
+end;
index e792f9693ffb74792a591c4974101728d80d9ef8..ecb435a5cdf3bff3621a25737a823e32c543e1da 100644 (file)
@@ -1,5 +1,21 @@
 long test64(long);
 long test64(long);
+long num(long);
+long num2(long);
+long globcmp(long*);
+long globcmp2(long*);
+
+
+long foo[] = {1337, 42};
+long bar[] = {23, 23};
+long foobar[] = {23, 42};
 
 RET((test64(0x1000000000) ==  (long) 0x1000000000 - (int) 0x80808080) 
        && (num(0) == -4)
 
 RET((test64(0x1000000000) ==  (long) 0x1000000000 - (int) 0x80808080) 
        && (num(0) == -4)
-       && (num2(0) == 26));
+       && (num2(0) == 26)
+       && (globcmp(foo) == 0)
+       && (globcmp(bar) == 0)
+       && (globcmp(foobar) == 1)
+       && (globcmp2(foo) == 0)
+       && (globcmp2(bar) == 1)
+       && (globcmp2(foobar) == 0)
+       );
index 7f8f011eb73d6043d2e6db9d2c101195ae2801f2..81b5c5d06cc0b8290c264b408abb32cc0986e8f2 100644 (file)
@@ -1 +1 @@
-7
+37