Skip to content

Commit

Permalink
add test for issue1407, recursion crash when vectors are parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
donbright committed Sep 6, 2015
1 parent 3fa0046 commit 5e1df90
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions testdata/scad/misc/recursion-test-vector.scad
@@ -0,0 +1,9 @@
// Test for recursion crashing when vectors are parameters to a module
// See github issue1407

rec();

module rec(a=1)
{
rec([a,10,10]);
}
1 change: 1 addition & 0 deletions tests/CMakeLists.txt
Expand Up @@ -1114,6 +1114,7 @@ list(APPEND ECHO_FILES ${FUNCTION_FILES}
${CMAKE_SOURCE_DIR}/../testdata/scad/misc/recursion-test-function.scad
${CMAKE_SOURCE_DIR}/../testdata/scad/misc/recursion-test-function2.scad
${CMAKE_SOURCE_DIR}/../testdata/scad/misc/recursion-test-module.scad
${CMAKE_SOURCE_DIR}/../testdata/scad/misc/recursion-test-vector.scad
${CMAKE_SOURCE_DIR}/../testdata/scad/misc/tail-recursion-tests.scad
${CMAKE_SOURCE_DIR}/../testdata/scad/misc/value-reassignment-tests.scad
${CMAKE_SOURCE_DIR}/../testdata/scad/misc/value-reassignment-tests2.scad
Expand Down

0 comments on commit 5e1df90

Please sign in to comment.