xref: /openbsd-src/gnu/usr.bin/perl/t/re/alpha_assertions.t (revision f3efcd0145415b7d44d9da97e0ad5c21b186ac61)
1#!./perl
2
3use strict;
4use warnings;
5no warnings 'once';
6no warnings 'experimental::vlb';
7
8# This tests that the alphabetic assertions, like '(*atomic:...) work
9# It just sets a flag and calls regexp.t which will run through its test
10# suite, modifiying the tests to use the alphabetic synonyms.
11
12BEGIN { $::alpha_assertions = 1; }
13for my $file ('./re/regexp.t', './t/re/regexp.t', ':re:regexp.t') {
14    if (-r $file) {
15	do $file or die $@;
16	exit;
17    }
18}
19die "Cannot find ./re/regexp.t or ./t/re/regexp.t\n";
20