aboutsummaryrefslogtreecommitdiff
path: root/res/test_sample_ko.tpc
diff options
context:
space:
mode:
Diffstat (limited to 'res/test_sample_ko.tpc')
-rw-r--r--res/test_sample_ko.tpc24
1 files changed, 24 insertions, 0 deletions
diff --git a/res/test_sample_ko.tpc b/res/test_sample_ko.tpc
new file mode 100644
index 0000000..9dc344f
--- /dev/null
+++ b/res/test_sample_ko.tpc
@@ -0,0 +1,24 @@
1/**
2 * UPEM / Compilation / Projet TPC
3 * Exemple de fichier source TPC invalide
4 * Pacien TRAN-GIRARD, Adam NAILI
5 */
6
7const special = 'b';
8
9caractere funky_func(entier arg) {
10 return !arg;
11}
12
13void main(void) {
14 void ret;
15 ret = 1 + funky_func(0) * 2;
16
17 while (ret) {
18 readc(ret);
19 print(ret);
20
21 if (ret == special) print('!');
22 }
23}
24