Commit pre enabling CTCE pass (which is quite slow, but does work). Had to add walking through cast nodes for finding variables to close over. Also had to remove the static in front of functions to prevent gcc compiling it so that it segfaults (doesn't segfault if compiled with clang, but wanted to make sure.)
This commit is contained in:
1
tests/test_ctce_pass.expected_results
Normal file
1
tests/test_ctce_pass.expected_results
Normal file
@@ -0,0 +1 @@
|
||||
more than 10000 nodes!
|
||||
12
tests/test_ctce_pass.krak
Normal file
12
tests/test_ctce_pass.krak
Normal file
@@ -0,0 +1,12 @@
|
||||
import node_counter: *
|
||||
|
||||
#ctce_pass(node_counter::node_counter_test)
|
||||
|
||||
fun small_func() {
|
||||
println("hello")
|
||||
}
|
||||
|
||||
fun main(): int {
|
||||
return 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user