diff options
Diffstat (limited to 'res/test_global_ok.tpc')
-rw-r--r-- | res/test_global_ok.tpc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/res/test_global_ok.tpc b/res/test_global_ok.tpc new file mode 100644 index 0000000..d8b7d45 --- /dev/null +++ b/res/test_global_ok.tpc | |||
@@ -0,0 +1,18 @@ | |||
1 | entier r1,b,s,c,r2 ; | ||
2 | caractere letter, digit, punct; | ||
3 | entier i; | ||
4 | |||
5 | |||
6 | void calcul(void) { | ||
7 | r1=12; | ||
8 | r2=13; | ||
9 | i = 3; | ||
10 | |||
11 | b = r1 + r2 + i; | ||
12 | print(b); | ||
13 | } | ||
14 | |||
15 | |||
16 | entier main(void) { | ||
17 | calcul(); | ||
18 | } | ||