summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts/runtime/errors/division_by_zero.gd
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gdscript/tests/scripts/runtime/errors/division_by_zero.gd')
-rw-r--r--modules/gdscript/tests/scripts/runtime/errors/division_by_zero.gd3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/runtime/errors/division_by_zero.gd b/modules/gdscript/tests/scripts/runtime/errors/division_by_zero.gd
new file mode 100644
index 0000000000..ace5397f40
--- /dev/null
+++ b/modules/gdscript/tests/scripts/runtime/errors/division_by_zero.gd
@@ -0,0 +1,3 @@
+func test():
+ var integer: int = 1
+ integer /= 0