From 536ae3c64856a95f18eb96f62adca63a3b022caa Mon Sep 17 00:00:00 2001 From: Erik Charlebois Date: Sat, 20 Feb 2010 21:15:47 -0800 Subject: [PATCH] Unit test checking the stack effects from FUNCTION:. --- basis/alien/parser/parser-tests.factor | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/basis/alien/parser/parser-tests.factor b/basis/alien/parser/parser-tests.factor index e405f49995..2fec2d9a4c 100644 --- a/basis/alien/parser/parser-tests.factor +++ b/basis/alien/parser/parser-tests.factor @@ -1,7 +1,7 @@ ! (c)2009 Joe Groff bsd license USING: accessors alien.c-types alien.parser alien.syntax -tools.test vocabs.parser parser eval vocabs.parser debugger -continuations ; +tools.test vocabs.parser parser eval debugger kernel +continuations words ; IN: alien.parser.tests TYPEDEF: char char2 @@ -34,6 +34,11 @@ CONSTANT: eleven 11 ] with-file-vocabs +FUNCTION: void* alien-parser-effect-test ( int *arg1 float arg2 ) ; +[ (( arg1 arg2 -- void* )) ] [ + \ alien-parser-effect-test "declared-effect" word-prop +] unit-test + ! Reported by mnestic TYPEDEF: int alien-parser-test-int ! reasonably unique name...