aboutsummaryrefslogtreecommitdiff
path: root/res/test_global.tpc
diff options
context:
space:
mode:
Diffstat (limited to 'res/test_global.tpc')
-rw-r--r--res/test_global.tpc15
1 files changed, 11 insertions, 4 deletions
diff --git a/res/test_global.tpc b/res/test_global.tpc
index 789f290..731fffb 100644
--- a/res/test_global.tpc
+++ b/res/test_global.tpc
@@ -4,9 +4,16 @@
4entier r1,b,s,c,r2 ; 4entier r1,b,s,c,r2 ;
5caractere letter, digit, punct; 5caractere letter, digit, punct;
6 6
7void calcul(void) {
8 entier i;
9 i = 3;
10 r1=12;
11 r2=13;
12 b = r1 + r2 + i;
13 print(b);
14}
15
16
7entier main(void) { 17entier main(void) {
8 r1=12; 18 calcul();
9 r2=13;
10 b = r1 + r2;
11 print(b);
12} 19}