diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/test_global.tpc | 15 |
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 @@ | |||
4 | entier r1,b,s,c,r2 ; | 4 | entier r1,b,s,c,r2 ; |
5 | caractere letter, digit, punct; | 5 | caractere letter, digit, punct; |
6 | 6 | ||
7 | void 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 | |||
7 | entier main(void) { | 17 | entier main(void) { |
8 | r1=12; | 18 | calcul(); |
9 | r2=13; | ||
10 | b = r1 + r2; | ||
11 | print(b); | ||
12 | } | 19 | } |