aboutsummaryrefslogtreecommitdiff
path: root/res/test_sample_ko.tpc
blob: 9dc344f718701b13ab7a8bf9db02150d25b68954 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/**
  * UPEM / Compilation / Projet TPC
  * Exemple de fichier source TPC invalide
  * Pacien TRAN-GIRARD, Adam NAILI
  */

const special = 'b';

caractere funky_func(entier arg) {
  return !arg;
}

void main(void) {
  void ret;
  ret = 1 + funky_func(0) * 2;

  while (ret) {
    readc(ret);
    print(ret);

    if (ret == special) print('!');
  }
}