4 yeni test: bitwise/basic, bitwise/compound, global/basic, global/init_expr. 19/19 golden test geçiyor. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
3c31f606d6
commit
34447d082e
|
|
@ -0,0 +1,5 @@
|
||||||
|
8
|
||||||
|
14
|
||||||
|
24
|
||||||
|
6
|
||||||
|
-1
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
int main() {
|
||||||
|
int a = 12;
|
||||||
|
int b = 10;
|
||||||
|
print(a & b);
|
||||||
|
print(a | b);
|
||||||
|
print(a << 1);
|
||||||
|
print(a >> 1);
|
||||||
|
print(~0);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
6
|
||||||
|
14
|
||||||
|
56
|
||||||
|
28
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
int main() {
|
||||||
|
int x = 15;
|
||||||
|
x &= 6;
|
||||||
|
print(x);
|
||||||
|
x |= 8;
|
||||||
|
print(x);
|
||||||
|
x <<= 2;
|
||||||
|
print(x);
|
||||||
|
x >>= 1;
|
||||||
|
print(x);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
5
|
||||||
|
105
|
||||||
|
8
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
int counter = 0;
|
||||||
|
int total = 100;
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
counter = 5;
|
||||||
|
total = total + counter;
|
||||||
|
print(counter);
|
||||||
|
print(total);
|
||||||
|
counter += 3;
|
||||||
|
print(counter);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
10
|
||||||
|
20
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
int base = 10;
|
||||||
|
int doubled = 0;
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
doubled = base * 2;
|
||||||
|
print(base);
|
||||||
|
print(doubled);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue