New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot assign the malloc allocated memory to the pointer in the argument. #5716
Comments
From @titsukiSee the following codes and results. ( Sorry, it's little bit long. ) t/01-basic.t use v6; compile_test_lib('01-basic'); subtest { subtest { my CArray[int32] $b .= new; subtest { my Pointer[int32] $b .= new; done-testing; t/01-basic.c #else DLLEXPORT void ptr_assign_malloc(int* item) DLLEXPORT void ary_assign_malloc(int* item) DLLEXPORT int* new_malloc() t/01-basic.h #if ! defined(HEADER_BASIC_H) #ifdef __cplusplus #ifdef __cplusplus #endif /* HEADER_BASIC_H */ t/CompileTestLib.pm (short version of rakudo's one) unit module CompileTestLib; my @cleanup; # files to be cleaned up afterwards sub compile_test_lib($name) is export { # MoarVM exposes exposes GNU make directives here, but we cannot pass this to gcc directly. $c_line = "$cfg<cc> -c $cfg<ccshared> $cfg<ccout>$name$o $cfg<cflags> t/$name.c"; END { * codes end * * results * $ mi6 test -v # Failed test at ./t/01-basic.t line 21 # Failed test at ./t/01-basic.t line 26 # Failed test 'ary_assign test' # Failed test at ./t/01-basic.t line 33 # Failed test at ./t/01-basic.t line 38 # Failed test 'ptr_assign test' Test Summary Report ./t/01-basic.t (Wstat: 512 Tests: 3 Failed: 2) * results end * I think: titsuki |
From @titsukiOn 2016-10月-01 土 23:39:47, cookbook_000@yahoo.co.jp wrote:
$ perl6 --version |
Migrated from rt.perl.org#129784 (status was 'new')
Searchable as RT129784$
The text was updated successfully, but these errors were encountered: