aboutsummaryrefslogtreecommitdiff
path: root/res/test_global.tpc
blob: 731fffb91c4b665d49aa181d66dd95a7772d6171 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* test-table-symboles.tpc */

/* Test file for simplified translator of a declaration of variables in C */
entier r1,b,s,c,r2 ;
caractere letter, digit, punct; 

void calcul(void) {
	entier i;
	i = 3;
  r1=12;
  r2=13;
  b = r1 + r2 + i;
  print(b);
}


entier main(void)  {
	calcul();
}