Skip to content

Commit 896701a

Browse files
committed
feat(testes): adc funcs em expressions
1 parent bb494b9 commit 896701a

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

tests/expressions.c

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,22 @@
1-
int main()
1+
int add(int k, int y)
2+
{
3+
return k + y;
4+
}
5+
6+
int sum(int a, int b)
7+
{
8+
// a + b
9+
/*
10+
* comment
11+
*/
12+
int r = (a + b) / 10;
13+
return r;
14+
}
15+
16+
int main(int K)
217
{
318
int a = 10;
419
int b = 20;
5-
int sum = a + b;
6-
printf("Sum: %d\n", sum);
20+
int r = sum(a, b) + add(a, b);
721
return 0;
8-
}
22+
}

0 commit comments

Comments
 (0)