diff options
author | Adam NAILI | 2018-06-05 23:03:29 +0200 |
---|---|---|
committer | Adam NAILI | 2018-06-05 23:03:29 +0200 |
commit | a037a641ca537f012865b2655917207af683ea1f (patch) | |
tree | 2cc15c0e2df751e635fe766cb89c534592944ec3 /res/test_const_ok.tpc | |
parent | 4cc53658a9503191f41945914e6223ccc5a95717 (diff) | |
parent | 1c1ba0e8cd1f7cb17b04626b7ef3cf9fcbe520ab (diff) | |
download | tpc-compiler-a037a641ca537f012865b2655917207af683ea1f.tar.gz |
Merge branch 'master' of https://github.com/pacien/upem-compil-tpc
Diffstat (limited to 'res/test_const_ok.tpc')
-rw-r--r-- | res/test_const_ok.tpc | 9 |
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 @@ | |||
1 | const c1 = 1; | ||
2 | const c2 = 2; | ||
3 | |||
4 | entier main(void) { | ||
5 | const c2 = 3; | ||
6 | const c3 = 4; | ||
7 | print(c1 + c2 + c3); /* expect: 1+3+4 = 8 */ | ||
8 | return 0; | ||
9 | } | ||