]> ruin.nu Git - proglang.git/commitdiff
added two new examples
authorMichael Andreen <harv@ruin.nu>
Fri, 10 Mar 2006 11:02:24 +0000 (11:02 +0000)
committerMichael Andreen <harv@ruin.nu>
Fri, 10 Mar 2006 11:02:24 +0000 (11:02 +0000)
examples/typeerror-scopeif [new file with mode: 0644]
examples/typeerror-scopewhile [new file with mode: 0644]

diff --git a/examples/typeerror-scopeif b/examples/typeerror-scopeif
new file mode 100644 (file)
index 0000000..40e635b
--- /dev/null
@@ -0,0 +1,4 @@
+if (true)
+int x = 1;
+else
+print x;
diff --git a/examples/typeerror-scopewhile b/examples/typeerror-scopewhile
new file mode 100644 (file)
index 0000000..edf42be
--- /dev/null
@@ -0,0 +1,3 @@
+while (false)
+int x = 1;
+print x;