aboutsummaryrefslogtreecommitdiff
path: root/res/test_nomain_ko.tpc
diff options
context:
space:
mode:
authorpacien2018-06-06 14:14:55 +0200
committerpacien2018-06-06 14:14:55 +0200
commit01406ad25ff49d5c5f722f34187d2063cefea5ed (patch)
tree4d96a701aa1986abe79f2469ffd641c4123749bb /res/test_nomain_ko.tpc
parent64d73526bf9d39ad9d3f04509f6656abde2240fd (diff)
downloadtpc-compiler-01406ad25ff49d5c5f722f34187d2063cefea5ed.tar.gz
require main func and rename tests
Diffstat (limited to 'res/test_nomain_ko.tpc')
-rw-r--r--res/test_nomain_ko.tpc6
1 files changed, 6 insertions, 0 deletions
diff --git a/res/test_nomain_ko.tpc b/res/test_nomain_ko.tpc
new file mode 100644
index 0000000..570c5ca
--- /dev/null
+++ b/res/test_nomain_ko.tpc
@@ -0,0 +1,6 @@
1const c = 0;
2
3/* not a main */
4void f(void) {
5 print(c);
6}