Debian Codegraph @

test/compiler-misc.scm

raw
1 ;;
2 ;; Test miscellaneous compiler subtleties
3 ;;
4 ;; This is run after basic are tested (in TEST2), so you can use them.
5
6 (use gauche.test)
7 (test-start "miscellaneous compiler features")
8
9 (test-section "uninitialized binding")
10
11 (test* "don't allow forward reference"
12 (test-error <error> #/uninitialized variable: list/)
13 (eval '(begin
14 (define orig-list list)
15 (define (list x) (cons 'x (orig-list x)))
16 (list 1))
17 (current-module)))
18
19 (test-end)