1 # Copyright (C) 2001-2007, The Perl Foundation.
6 config/auto/va_ptr.pm - va_list to va_ptr conversion test
10 Tests which kind of PARROT_VA_TO_VAPTR to use.
19 use base
qw(Parrot::Configure::Step);
21 use Parrot
::Configure
::Utils
':auto';
28 q{Test the type of va_ptr (this test is likely to segfault)};
34 my ( $self, $conf ) = @_;
37 $conf->cc_gen('config/auto/va_ptr/test_c.in');
38 eval { $conf->cc_build('-DVA_TYPE_STACK'); };
40 if ( $@
|| $conf->cc_run() !~ /^ok/ ) {
41 eval { $conf->cc_build('-DVA_TYPE_REGISTER'); };
42 if ( $@
|| $conf->cc_run() !~ /^ok/ ) {
43 die "Unknown va_ptr type";
45 $va_type = 'register';
51 $self->set_result($va_type);
52 $conf->data->set( va_ptr_type
=> $va_type );
61 # cperl-indent-level: 4
64 # vim: expandtab shiftwidth=4: