From: Doni Pracner Date: Tue, 10 Dec 2013 23:46:00 +0000 (+0100) Subject: samples, renamed sample2 to div0, and added 'div2' which is the same sa div0, just... X-Git-Tag: v0.1.3~5 X-Git-Url: http://svarog.pmf.uns.ac.rs/gitweb/?p=mjc2wsl.git;a=commitdiff_plain;h=2893f56e860676d399302ea06dbae0e32dede8a6;hp=9cf197a33cddf9e442e63f9356bad187671a255a samples, renamed sample2 to div0, and added 'div2' which is the same sa div0, just without the (intentional) run time error --- diff --git a/samples/div0.mj b/samples/div0.mj new file mode 100644 index 0000000..d8fb689 --- /dev/null +++ b/samples/div0.mj @@ -0,0 +1,10 @@ +program test +{ + void main() + int i, j; + { + i = 100; j = 0; + print(i/j); + } + +} \ No newline at end of file diff --git a/samples/div2.mj b/samples/div2.mj new file mode 100644 index 0000000..d498e3d --- /dev/null +++ b/samples/div2.mj @@ -0,0 +1,10 @@ +program test +{ + void main() + int i, j; + { + i = 100; j = 2; + print(i/j); + } + +} \ No newline at end of file diff --git a/samples/sample2.mj b/samples/sample2.mj deleted file mode 100644 index d8fb689..0000000 --- a/samples/sample2.mj +++ /dev/null @@ -1,10 +0,0 @@ -program test -{ - void main() - int i, j; - { - i = 100; j = 0; - print(i/j); - } - -} \ No newline at end of file