Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'rurban/nci-void-gh904'
- Loading branch information
Showing
14 changed files
with
176 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -285,3 +285,9 @@ STRING (ptr, INTVAL) | |
|
||
# NCI::Utils | ||
STRING (ptr, ptr, INTVAL) | ||
|
||
# examples/nci/Qt | ||
p v | ||
p p | ||
v pii | ||
v p |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#! perl | ||
# Copyright (C) 2013, Parrot Foundation. | ||
|
||
use strict; | ||
use warnings; | ||
use lib qw(lib); | ||
|
||
use Test::More tests => 2; | ||
use Parrot::Config; | ||
|
||
my ($cc, $cc_inc, $ccflags, $cc_warn, $cc_o_out, $cc_shared, $cc_debug, $clock_best) | ||
= @PConfig{qw(cc cc_inc ccflags ccwarn cc_o_out cc_shared cc_debug clock_best)}; | ||
my $cflags = "$cc_inc $ccflags $cc_debug $clock_best $cc_shared"; | ||
my $cmd = q(echo "p v"|./parrot tools/dev/nci_thunk_gen.pir --output=test_nci.c); | ||
system ($cmd); | ||
ok (-f "test_nci.c", "test_nci.c created") or diag $cmd; | ||
|
||
$cmd = qq($cc $cflags $cc_warn -I. -Isrc ${cc_o_out}test_nci.o -c test_nci.c); | ||
system ($cmd); | ||
ok (-f "test_nci.o", "test_nci.o created") or diag $cmd; | ||
|
||
unlink ("test_nci.*"); | ||
|
||
__END__ | ||
=head1 NAME | ||
t/tools/dev/nci_thunk_gen.t - test bugs in tools/dev/nci_thunk_gen.pir | ||
=head1 SYNOPSIS | ||
% prove t/tools/dev/nci_thunk_gen.t | ||
=head1 DESCRIPTION | ||
Test basic F<nci_thunk_gen.pir> usage. | ||
Test that the sig "p v" compiles to valid C code [GH #904]. | ||
=cut | ||
# Local Variables: | ||
# mode: cperl | ||
# cperl-indent-level: 4 | ||
# fill-column: 100 | ||
# End: | ||
# vim: expandtab shiftwidth=4: |
Oops, something went wrong.