rust/src/test
Niko Matsakis fb48817ade work around bug when calling c-stack-cdecl fns from outside crate
In the main test, I call the wrapper instead of the native fn, as intended.
I also added an xfail-test that exercises the broken code path.  Will
file a bug.

Description of the broken code path:

The code path is that when we look up the external identifier we go through
trans_external_path() ->  type_of_ty_param_kinds_and_ty() ->
type_of_fn_from_ty() -> type_of_fn(), and type_of_fn() adds a lot of external
parameters. Problem is, I guess, that we don't pass the native ABI (or even the
fact that it's a native function!), just the types and kinds of the parameters.
2011-10-24 16:06:17 -07:00
..
bench Remove some semicolons after block calls 2011-10-21 14:24:42 +02:00
compile-fail Remove some semicolons after block calls 2011-10-21 14:24:42 +02:00
pretty Add regression tests for previously ambiguous syntactic forms 2011-09-15 08:47:23 -07:00
run-fail Remove some semicolons after block calls 2011-10-21 14:24:42 +02:00
run-pass work around bug when calling c-stack-cdecl fns from outside crate 2011-10-24 16:06:17 -07:00
stdtest work around bug when calling c-stack-cdecl fns from outside crate 2011-10-24 16:06:17 -07:00