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