aboutsummaryrefslogtreecommitdiff
path: root/res/test_const_ok.tpc
diff options
context:
space:
mode:
Diffstat (limited to 'res/test_const_ok.tpc')
-rw-r--r--res/test_const_ok.tpc9
1 files changed, 9 insertions, 0 deletions
diff --git a/res/test_const_ok.tpc b/res/test_const_ok.tpc
new file mode 100644
index 0000000..caf647c
--- /dev/null
+++ b/res/test_const_ok.tpc
@@ -0,0 +1,9 @@
1const c1 = 1;
2const c2 = 2;
3
4entier main(void) {
5 const c2 = 3;
6 const c3 = 4;
7 print(c1 + c2 + c3); /* expect: 1+3+4 = 8 */
8 return 0;
9}