aboutsummaryrefslogtreecommitdiff
path: root/velocity-engine-core/src/test/resources/templates/testCase644.vm
diff options
context:
space:
mode:
Diffstat (limited to 'velocity-engine-core/src/test/resources/templates/testCase644.vm')
-rw-r--r--velocity-engine-core/src/test/resources/templates/testCase644.vm20
1 files changed, 20 insertions, 0 deletions
diff --git a/velocity-engine-core/src/test/resources/templates/testCase644.vm b/velocity-engine-core/src/test/resources/templates/testCase644.vm
new file mode 100644
index 00000000..03141762
--- /dev/null
+++ b/velocity-engine-core/src/test/resources/templates/testCase644.vm
@@ -0,0 +1,20 @@
+
+#macro(arrayError)
+ #set($foo = [])
+ $foo.get(2)
+#end
+
+#macro(nullMethod)
+ #set($foo = $NULL)
+ $foo.bar
+#end
+
+#macro(badRef)
+ $bar
+#end
+
+#macro(forloop)
+ #set($val = 1)
+ #foreach($i in $val)
+ #end
+#end