This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
move sub attributes before the signature
[perl5.git] / t / op / cond.t
CommitLineData
8d063cd8
LW
1#!./perl
2
63811f13
CK
3BEGIN {
4 chdir 't' if -d 't';
63811f13 5 require './test.pl';
624c42e2 6 set_up_inc('../lib');
63811f13 7}
8d063cd8 8
63811f13
CK
9is( 1 ? 1 : 0, 1, 'compile time, true' );
10is( 0 ? 0 : 1, 1, 'compile time, false' );
8d063cd8
LW
11
12$x = 1;
63811f13
CK
13is( $x ? 1 : 0, 1, 'run time, true');
14is( !$x ? 0 : 1, 1, 'run time, false');
15
16done_testing();