9 is( 1 ? 1 : 0, 1, 'compile time, true' );
10 is( 0 ? 0 : 1, 1, 'compile time, false' );
13 is( $x ? 1 : 0, 1, 'run time, true');
14 is( !$x ? 0 : 1, 1, 'run time, false');
16 # This used to SEGV due to deep recursion in Perl_scalar().
17 # (Actually it only SEGVed with the depth being about 100_000; but
18 # compiling the nested condition goes quadratic in some way, so I've
19 # reduced to the count to a manageable size. So this is not so much a
20 # proper test, as it is a comment on the sort of thing that used to break)
24 $e = "(\$x ? 1 : $e)" for 1..20_000;
27 is $@, "", "SEGV in Perl_scalar";