xref: /onnv-gate/usr/src/cmd/perl/5.8.4/distrib/t/run/switchPx.aux (revision 0:68f95e015346)
1*0Sstevel@tonic-gateSome stuff that's not Perl
2*0Sstevel@tonic-gate
3*0Sstevel@tonic-gateThis CPP directive should not be read.
4*0Sstevel@tonic-gate#define BARMAR 1
5*0Sstevel@tonic-gate
6*0Sstevel@tonic-gate#perl
7*0Sstevel@tonic-gate
8*0Sstevel@tonic-gateStill not perl.
9*0Sstevel@tonic-gate
10*0Sstevel@tonic-gate#!
11*0Sstevel@tonic-gate
12*0Sstevel@tonic-gatestill not perl
13*0Sstevel@tonic-gate
14*0Sstevel@tonic-gate#!/something/else
15*0Sstevel@tonic-gate
16*0Sstevel@tonic-gatestill not perl
17*0Sstevel@tonic-gate
18*0Sstevel@tonic-gate#!/some/path/that/leads/to/perl -l
19*0Sstevel@tonic-gate
20*0Sstevel@tonic-gate# The -l switch should be applied from the #! line.
21*0Sstevel@tonic-gate# Unfortunately, -P has a bug whereby the #! line is ignored.
22*0Sstevel@tonic-gate# If this test suddenly starts printing blank lines that bug is fixed.
23*0Sstevel@tonic-gate
24*0Sstevel@tonic-gate#define FOO "ok 1\n"
25*0Sstevel@tonic-gate
26*0Sstevel@tonic-gate#ifdef BARMAR
27*0Sstevel@tonic-gate#   define YAR "not ok 2\n"
28*0Sstevel@tonic-gate#else
29*0Sstevel@tonic-gate#   define YAR "ok 2\n"
30*0Sstevel@tonic-gate#endif
31*0Sstevel@tonic-gate
32*0Sstevel@tonic-gateprint "1..2\n";
33*0Sstevel@tonic-gateprint FOO;
34*0Sstevel@tonic-gateprint YAR;
35