Skip to content

Commit

Permalink
[t] Parrot_PMC_decrement
Browse files Browse the repository at this point in the history
  • Loading branch information
leto committed Dec 30, 2010
1 parent 990977d commit 8c873ea
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion t/src/embed.t
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ CODE
Done!
OUTPUT

c_output_is($common . linedirective(__LINE__) . <<'CODE', <<'OUTPUT', "Parrot_PMC_increment" );
c_output_is($common . linedirective(__LINE__) . <<'CODE', <<'OUTPUT', "Parrot_PMC_(increment|decrement)" );
int main(void)
{
Expand All @@ -325,12 +325,17 @@ int main(void)
Parrot_PMC_increment(interp, pmc);
value = Parrot_PMC_get_integer(interp, pmc);
printf("%d\n", (int) value);
Parrot_PMC_decrement(interp, pmc);
value = Parrot_PMC_get_integer(interp, pmc);
printf("%d\n", (int) value);
Parrot_destroy(interp);
printf("Done!\n");
return 0;
}
CODE
-41
-42
Done!
OUTPUT

Expand Down

0 comments on commit 8c873ea

Please sign in to comment.