about summary refs log tree commit diff
path: root/src/test/run-pass/invoke-external-native.rs
AgeCommit message (Collapse)AuthorLines
2011-12-13Copy first batch of material from libstd to libcore.Graydon Hoare-1/+1
2011-11-18re-enable tests for #1058 and #1059Niko Matsakis-3/+2
2011-11-09Add "cdecl" as synonym for "c-stack-cdecl"Brian Anderson-1/+1
2011-10-24work around bug when calling c-stack-cdecl fns from outside crateNiko Matsakis-0/+11
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.