Home
last modified time | relevance | path

Searched refs:lvalue (Results 1 – 25 of 224) sorted by relevance

123456789

/openbsd-src/gnu/usr.bin/perl/t/op/
H A Dsub_lval.t10 sub a : lvalue { my $a = 34; ${\(bless \$a)} } # Return a temporary
11 sub b : lvalue { ${\shift} }
23 sub in : lvalue { $in = shift; }
24 sub neg : lvalue { #(num_str) return num_str
34 sub get_lex : lvalue { $in }
35 sub get_st : lvalue { $blah }
36 sub id : lvalue { ${\shift} }
37 sub id1 : lvalue { $_[0] }
38 sub inc : lvalue { ${\++$_[0]} }
123 sub a3 :lvalue {@a}
[all …]
H A Dmethod.t466 'foo->bar(my($foo,$bar)) is not called in lvalue context';
468 'foo->bar(our($foo,$bar)) is not called in lvalue context';
470 'foo->bar(local($foo,$bar)) is not called in lvalue context';
472 'foo->lv(my($foo,$bar)) is not called in lvalue context';
474 'foo->lv(our($foo,$bar)) is not called in lvalue context';
476 'foo->lv(local($foo,$bar)) is not called in lvalue context';
H A Dkvhslice.t105 sub foo:lvalue{ %h{qw(a b)} };
132 'not allowed as result of lvalue sub';
133 eval 'sub bbar:lvalue{ %h{qw(a b)} }; bbar() = "1"';
H A Dattrs.t111 eval 'package A; sub PS : lvalue';
116 eval 'package A; sub PS2 : lvalue method';
121 eval 'package A; sub PS : lvalue; sub PS { }';
357 sub lent :lvalue {}
H A Dkvaslice.t107 sub foo:lvalue{ %a[@i] };
135 'not allowed as result of lvalue sub';
H A Dvec.t63 like($@, qr/^Negative offset to vec in lvalue context/);
116 is($destroyed, 1, 'Timely scalar destruction with lvalue vec');
155 # Note that all the 'Out of memory during vec in lvalue context' errors
171 like($@, qr/^Out of memory during vec in lvalue context/, "RT 130915: UV_MAX lval");
178 like($@, qr/^Negative offset to vec in lvalue context/,
193 like($@, qr/^Out of memory during vec in lvalue context/, "RT 130915: size_max*2 lval");
207 like($@, qr/^Out of memory during vec in lvalue context/,
235 # RT #131083 maybe-lvalue out of range should only croak if assigned to
244 like($@, qr/Negative offset to vec in lvalue context/, "RT131083 lval -1");
250 like($@, qr/Out of memory during vec in lvalue contex
[all...]
H A Dtry.t175 # return from try is correct even for :lvalue subs
179 sub fscalar :lvalue
186 is($scalar, 123, 'try { return } in :lvalue sub in scalar context' );
189 sub flist :lvalue
196 ok(eq_array(\@array, [4, 5, 6]), 'try { return } in :lvalue sub in list context' );
H A Dexec.t151 foreach my $lvalue ("my \$r", "my \@r") {
152 eval("$lvalue = readpipe$args if 0");
H A Dlock.t15 sub eulavl : lvalue { $x }
H A Daassign.t89 sub f3 : lvalue { ($x,$y) = (1,2); $y, $x }
150 sub f9 : lvalue {
205 sub f12 : lvalue { @a }
212 sub f13 : lvalue { $x,$y }
/openbsd-src/gnu/usr.bin/perl/ext/XS-APItest/t/
H A Dmulticall.t107 sub f1 :lvalue { () }
113 sub f2 :lvalue { return; 1 }
120 sub f3 :lvalue { for (1,2) { return; 1 } }
128 sub f4 :lvalue { "one" }
134 sub f5 :lvalue { return "one"; 1 }
140 sub f6 :lvalue { for (1,2) { return "one"; 1 } }
148 sub f7 :lvalue { "one", "two" }
154 sub f8 :lvalue { return "one", "two"; 1 }
160 sub f9 :lvalue { for (1,2) { return "one", "two"; 1 } }
H A Dtemp_lv_sub.t9 sub make_temp_mg_lv :lvalue { XS::APItest::TempLv::make_temp_mg_lv($_[0]); }
/openbsd-src/gnu/usr.bin/perl/t/lib/croak/
H A Dpp_hot2 # NAME local %$ref on last line of lvalue sub in lv cx
3 sub foo :lvalue { local %{\%foo} }
8 # NAME local @$ref on last line of lvalue sub in lv cx
9 sub foo :lvalue { local @{\@foo} }
14 # NAME local %$ref on last line of lvalue sub in non-lv cx
15 sub foo :lvalue { local %{\%foo} }
20 # NAME local @$ref on last line of lvalue sub in non-lv cx
21 sub foo :lvalue { local @{\@foo} }
/openbsd-src/gnu/usr.bin/perl/cpan/Compress-Raw-Zlib/t/
H A D18lvalue.t17 plan(skip_all => "lvalue sub tests need Perl ??")
45 title 'deflate/inflate with lvalue sub';
51 sub getData : lvalue { $data }
52 sub getX : lvalue { $X }
53 sub getZ : lvalue { $Z }
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCGAtomic.cpp43 AtomicInfo(CodeGenFunction &CGF, LValue &lvalue) in AtomicInfo() argument
46 assert(!lvalue.isGlobalReg()); in AtomicInfo()
48 if (lvalue.isSimple()) { in AtomicInfo()
49 AtomicTy = lvalue.getType(); in AtomicInfo()
71 if (lvalue.getAlignment().isZero()) in AtomicInfo()
72 lvalue.setAlignment(AtomicAlign); in AtomicInfo()
74 LVal = lvalue; in AtomicInfo()
75 } else if (lvalue.isBitField()) { in AtomicInfo()
76 ValueTy = lvalue.getType(); in AtomicInfo()
78 auto &OrigBFI = lvalue.getBitFieldInfo(); in AtomicInfo()
[all …]
H A DCGExprComplex.cpp368 ComplexPairTy ComplexExprEmitter::EmitLoadOfLValue(LValue lvalue, in EmitLoadOfLValue() argument
370 assert(lvalue.isSimple() && "non-simple complex l-value?"); in EmitLoadOfLValue()
371 if (lvalue.getType()->isAtomicType()) in EmitLoadOfLValue()
372 return CGF.EmitAtomicLoad(lvalue, loc).getComplexVal(); in EmitLoadOfLValue()
374 Address SrcPtr = lvalue.getAddress(CGF); in EmitLoadOfLValue()
375 bool isVolatile = lvalue.isVolatileQualified(); in EmitLoadOfLValue()
380 Address RealP = CGF.emitAddrOfRealComponent(SrcPtr, lvalue.getType()); in EmitLoadOfLValue()
385 Address ImagP = CGF.emitAddrOfImagComponent(SrcPtr, lvalue.getType()); in EmitLoadOfLValue()
394 void ComplexExprEmitter::EmitStoreOfComplex(ComplexPairTy Val, LValue lvalue, in EmitStoreOfComplex() argument
396 if (lvalue.getType()->isAtomicType() || in EmitStoreOfComplex()
[all …]
H A DCGDecl.cpp752 LValue &lvalue, in drillIntoBlockVariable() argument
754 lvalue.setAddress(CGF.emitBlockByrefAddress(lvalue.getAddress(CGF), var)); in drillIntoBlockVariable()
779 LValue lvalue, bool capturedByInit) { in EmitScalarInit() argument
780 Qualifiers::ObjCLifetime lifetime = lvalue.getObjCLifetime(); in EmitScalarInit()
784 drillIntoBlockVariable(*this, lvalue, cast<VarDecl>(D)); in EmitScalarInit()
785 EmitNullabilityCheck(lvalue, value, init->getExprLoc()); in EmitScalarInit()
786 EmitStoreThroughLValue(RValue::get(value), lvalue, true); in EmitScalarInit()
797 return EmitScalarInit(EWC->getSubExpr(), D, lvalue, capturedByInit); in EmitScalarInit()
808 LValue tempLV = lvalue; in EmitScalarInit()
856 if (!accessedByInit && tryEmitARCCopyWeakInit(*this, lvalue, init)) { in EmitScalarInit()
[all …]
/openbsd-src/gnu/usr.bin/perl/ext/attributes/
H A Dattributes.pm26 lvalue => 'lvalue attribute applied to already-defined subroutine',
27 -lvalue => 'lvalue attribute removed from already-defined subroutine',
224 =item lvalue
226 Indicates that the referenced subroutine is a valid lvalue and can
234 lvalue context not being propagated properly into the subroutine, or maybe
384 lvalue method
448 sub foo : lvalue ;
452 use attributes X => \&foo, "lvalue";
[all...]
/openbsd-src/gnu/usr.bin/perl/t/lib/warnings/
H A Dpp6 Attempt to use reference as lvalue in substr
50 Attempt to use reference as lvalue in substr at - line 5.
51 Attempt to use reference as lvalue in substr at - line 7.
/openbsd-src/gnu/usr.bin/perl/lib/perl5db/t/
H A Dlvalue-bug7 sub foo () : lvalue { $i }
H A Dlsub-n1 sub foo : lvalue {
H A Drt-124203b7 sub foo:lvalue {
/openbsd-src/usr.bin/bc/
H A Dextern.h22 struct lvalue { struct
/openbsd-src/gnu/usr.bin/perl/cpan/AutoLoader/t/
H A D02AutoSplit.t254 sub test_a1 ($) : lvalue :lvalue { 1; }
255 sub test_a2 : lvalue { 1; }
287 sub test_a1\s*\(\$\)\s*:\s*lvalue\s*:\s*lvalue\s*;
288 sub test_a2\s*:\s*lvalue\s*;
/openbsd-src/gnu/usr.bin/perl/pod/
H A Dperl5160delta.pod93 =head3 C<substr> lvalue revamp
97 When C<substr> is called in lvalue or potential lvalue context with two
98 or three arguments, a special lvalue scalar is returned that modifies
107 lvalue scalar that is returned, and the original string is not even
108 looked at by C<substr> itself, but only when the returned lvalue is
118 my $lvalue = \substr $string, -4, 2;
119 print $$lvalue, "\n"; # prints "ri"
121 print $$lvalue, "\n"; # prints "wi"; used to print "il"
124 lvalue wil
[all...]

123456789