Files
c3c/test/test_suite/expressions/arithmetics.c3
2021-11-16 17:46:44 +01:00

40 lines
426 B
Plaintext

module arithmetics;
fn void testAdd(int a, int b)
{
a = a + b;
a += b;
a += 1;
}
fn void testSub(int a, int b)
{
a = a - b;
a -= b;
a -= 1;
}
fn void testMult(int a, int b)
{
a = a * b;
a *= b;
a *= 1;
}
fn void testDiv(int a, int b)
{
a = a / b;
a /= b;
a /= 1;
}
fn void testAssignment()
{
ichar x = -3 - 5;
ichar c = -128;
}
fn char test22()
{
return 100;
}