@@ -3,13 +3,11 @@ __END__
33join,
44EXPECT
55Not enough arguments for join or string at - line 1, near "join,"
6- Execution of - aborted due to compilation errors.
76########
87# NAME my $<special>
98my $!;
109EXPECT
1110Can't use global $! in "my" at - line 1, near "my $!"
12- Execution of - aborted due to compilation errors.
1311########
1412# NAME my $<non-ASCII> doesn't output garbage
1513# \xB6 is same character in all three EBCDIC pages and Latin1
@@ -70,90 +68,76 @@ use feature 'bitwise';
7068@a &= 1;
7169EXPECT
7270Can't modify array dereference in numeric bitwise and (&) at - line 2, near "1;"
73- Execution of - aborted due to compilation errors.
7471########
7572# NAME Num-specific |= on @array
7673use feature 'bitwise';
7774@a |= 1;
7875EXPECT
7976Can't modify array dereference in numeric bitwise or (|) at - line 2, near "1;"
80- Execution of - aborted due to compilation errors.
8177########
8278# NAME Num-specific ^= on @array
8379use feature 'bitwise';
8480@a ^= 1;
8581EXPECT
8682Can't modify array dereference in numeric bitwise xor (^) at - line 2, near "1;"
87- Execution of - aborted due to compilation errors.
8883########
8984# NAME &.= on @array
9085use feature 'bitwise';
9186@a &.= 1;
9287EXPECT
9388Can't modify array dereference in string bitwise and (&.) at - line 2, near "1;"
94- Execution of - aborted due to compilation errors.
9589########
9690# NAME |.= on @array
9791use feature 'bitwise';
9892@a |.= 1;
9993EXPECT
10094Can't modify array dereference in string bitwise or (|.) at - line 2, near "1;"
101- Execution of - aborted due to compilation errors.
10295########
10396# NAME ^.= on @array
10497use feature 'bitwise';
10598@a ^.= 1;
10699EXPECT
107100Can't modify array dereference in string bitwise xor (^.) at - line 2, near "1;"
108- Execution of - aborted due to compilation errors.
109101########
110102# NAME substr %h in scalar assignment
111103substr(%h,0) = 3;
112104EXPECT
113105Can't modify hash dereference in substr at - line 1, near "3;"
114- Execution of - aborted due to compilation errors.
115106########
116107# NAME substr %h in list assignment
117108(substr %h,0) = 3;
118109EXPECT
119110Can't modify hash dereference in substr at - line 1, near "3;"
120- Execution of - aborted due to compilation errors.
121111########
122112# NAME vec %h in scalar assignment
123113vec(%h,1,1) = 3;
124114EXPECT
125115Can't modify hash dereference in vec at - line 1, near "3;"
126- Execution of - aborted due to compilation errors.
127116########
128117# NAME vec %h in list assignment
129118(vec %h,1,1) = 3;
130119EXPECT
131120Can't modify hash dereference in vec at - line 1, near "3;"
132- Execution of - aborted due to compilation errors.
133121########
134122# NAME Can't declare conditional
135123my($a?$b:$c)
136124EXPECT
137125Can't declare conditional expression in "my" at - line 1, at EOF
138- Execution of - aborted due to compilation errors.
139126########
140127# NAME Can't declare do block
141128my(do{})
142129EXPECT
143130Can't declare do block in "my" at - line 1, at EOF
144- Execution of - aborted due to compilation errors.
145131########
146132# NAME ($_, state $x) = ...
147133($_, CORE::state $x) = ();
148134EXPECT
149135Initialization of state variables in list currently forbidden at - line 1, near ");"
150- Execution of - aborted due to compilation errors.
151136########
152137# NAME my $y; ($y, state $x) = ...
153138my $y; ($y, CORE::state $x) = ();
154139EXPECT
155140Initialization of state variables in list currently forbidden at - line 1, near ");"
156- Execution of - aborted due to compilation errors.
157141########
158142# NAME delete BAD
159143delete $x;
@@ -180,43 +164,36 @@ exists argument is not a subroutine name at - line 1.
180164push FRED;
181165EXPECT
182166Type of arg 1 to push must be array (not constant item) at - line 1, near "FRED;"
183- Execution of - aborted due to compilation errors.
184167########
185168# NAME pop BAREWORD
186169pop FRED;
187170EXPECT
188171Type of arg 1 to pop must be array (not constant item) at - line 1, near "FRED;"
189- Execution of - aborted due to compilation errors.
190172########
191173# NAME shift BAREWORD
192174shift FRED;
193175EXPECT
194176Type of arg 1 to shift must be array (not constant item) at - line 1, near "FRED;"
195- Execution of - aborted due to compilation errors.
196177########
197178# NAME unshift BAREWORD
198179unshift FRED;
199180EXPECT
200181Type of arg 1 to unshift must be array (not constant item) at - line 1, near "FRED;"
201- Execution of - aborted due to compilation errors.
202182########
203183# NAME keys BAREWORD
204184@a = keys FRED ;
205185EXPECT
206186Type of arg 1 to keys must be hash or array (not constant item) at - line 1, near "FRED ;"
207- Execution of - aborted due to compilation errors.
208187########
209188# NAME values BAREWORD
210189@a = values FRED ;
211190EXPECT
212191Type of arg 1 to values must be hash or array (not constant item) at - line 1, near "FRED ;"
213- Execution of - aborted due to compilation errors.
214192########
215193# NAME each BAREWORD
216194@a = each FRED ;
217195EXPECT
218196Type of arg 1 to each must be hash or array (not constant item) at - line 1, near "FRED ;"
219- Execution of - aborted due to compilation errors.
220197########
221198# NAME better messages for array-ops on non-arrays
222199push %a, 1;
@@ -236,7 +213,6 @@ Type of arg 1 to push must be array (not ref-to-glob cast) at - line 5, near "1;
236213Type of arg 1 to pop must be array (not ref-to-glob cast) at - line 6, near "*a;"
237214Type of arg 1 to shift must be array (not ref-to-glob cast) at - line 7, near "*a;"
238215Type of arg 1 to unshift must be array (not ref-to-glob cast) at - line 8, near "1;"
239- Execution of - aborted due to compilation errors.
240216########
241217# NAME better messages for array-ops on non-arrays (part 2)
242218# to check PADHV without hitting the reported error limit
@@ -250,7 +226,6 @@ Type of arg 1 to push must be array (not private hash) at - line 3, near "1;"
250226Type of arg 1 to pop must be array (not private hash) at - line 4, near "%a;"
251227Type of arg 1 to shift must be array (not private hash) at - line 5, near "%a;"
252228Type of arg 1 to unshift must be array (not private hash) at - line 6, near "1;"
253- Execution of - aborted due to compilation errors.
254229########
255230use feature 'defer';
256231no warnings 'experimental::defer';
@@ -307,7 +282,6 @@ sub xx {
307282}
308283EXPECT
309284Missing comma after first argument to return at - line 2, near "5;"
310- Execution of - aborted due to compilation errors.
311285########
312286# subsequent use VERSION to 5.39
313287use v5.20;
@@ -333,12 +307,10 @@ no warnings 'experimental::keyword_any';
333307any length, qw( a b c )
334308EXPECT
335309syntax error at - line 4, near "any length"
336- Execution of - aborted due to compilation errors.
337310########
338311# all with deferred LIST expression
339312use feature 'keyword_all';
340313no warnings 'experimental::keyword_all';
341314all length, qw( a b c )
342315EXPECT
343316syntax error at - line 4, near "all length"
344- Execution of - aborted due to compilation errors.
0 commit comments