xref: /openbsd/gnu/usr.bin/perl/t/porting/bincompat.t (revision a6445c1d)
1#!./perl -w
2use strict;
3require './test.pl';
4
5use Config;
6
7plan(2);
8
9# Defiantly a white box test...
10
11# As we need to call it direct, we'll take advantage of its result ordering:
12my @to_check = qw(bincompat_options non_bincompat_options);
13my @V = map {s/^ //r} Internals::V();
14
15while (my ($index, $sub) = each @to_check) {
16    my $got = join ' ', sort &{Config->can($sub)}();
17    is($got, $V[$index], "C source code has $sub in sorted order");
18}
19