HomeSort by relevance Sort by last modified time
    Searched full:lvalue (Results 1 - 25 of 311) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/clang/test/CXX/expr/expr.mptr.oper/
p6-0x.cpp 5 template<typename T> T& lvalue();
12 // expression whose object expression is an lvalue, the program is
18 (lvalue<X>().*pmf)(17);
23 // Lvalue ref-qualifier.
24 (lvalue<X>().*l_pmf)(17);
25 (xvalue<X>().*l_pmf)(17); // expected-error{{pointer-to-member function type 'int (X::*)(int) &' can only be called on an lvalue}}
26 (prvalue<X>().*l_pmf)(17); // expected-error{{pointer-to-member function type 'int (X::*)(int) &' can only be called on an lvalue}}
30 (lvalue<X>().*r_pmf)(17); // expected-error{{pointer-to-member function type 'int (X::*)(int) &&' can only be called on an rvalue}}
  /external/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.call/
p3-0x.cpp 5 // and the argument is an lvalue, the type "lvalue reference to A" is
15 template<typename T> T& lvalue();
20 X<int&> xi2 = f0(lvalue<int>());
23 X<Y&> xy2 = f0(lvalue<Y>());
32 f1(lvalue<int>()); // expected-error{{no matching function for call to 'f1'}}
35 f1(lvalue<Y>()); // expected-error{{no matching function for call to 'f1'}}
  /external/clang/test/CXX/expr/expr.post/expr.static.cast/
p3-0x.cpp 8 template<typename T> T& lvalue();
14 A &&ar2 = static_cast<A&&>(lvalue<A>());
15 A &&ar3 = static_cast<A&&>(lvalue<B>());
20 const A &&ar8 = static_cast<const A&&>(lvalue<A>());
21 const A &&ar9 = static_cast<const A&&>(lvalue<B>());
  /external/clang/test/CXX/expr/expr.post/expr.const.cast/
p1-0x.cpp 4 // an lvalue reference to object type, the result is an lvalue; if T
9 template<typename T> T& lvalue();
  /external/clang/test/CXX/over/over.match/over.match.funcs/
p4-0x.cpp 3 template<typename T> T &lvalue();
40 int &ir1 = lvalue<X0>().f();
43 int &ir2 = lvalue<X0>().ft(1);
49 int &ir1 = lvalue<X0>()();
55 int &ir1 = lvalue<X0>() + prvalue<X0>();
58 int &ir2 = lvalue<X0>() + 1;
64 int &ir1 = lvalue<X0>().h();
67 int &ir2 = lvalue<X0>().h2();
  /external/clang/test/SemaCXX/
address-of.cpp 25 (void)&Enumerator; // expected-error{{address expression must be an lvalue or a function designator}}
30 (void)&N; // expected-error{{address expression must be an lvalue or a function designator}}
expression-traits.cpp 29 // basic.lval/1 Every expression is either an lvalue or an rvalue.
34 // an lvalue.
39 static_assert(__is_lvalue_expr(expr), "should be an lvalue"); \
43 static_assert(!__is_rvalue_expr(expr), "should be an lvalue"); \
140 // (8.3.2, 8.5.3), ... the expression is an lvalue.
149 // 5.1/2 A string literal is an lvalue; all other
218 // expression. ...The result is an lvalue if the entity is
253 // entity denoted by the identifier. The result is an lvalue if
266 // member. The result is an lvalue if the member is a static
280 // expr.call/10: A function call is an lvalue if and only if th
364 Class lvalue; local
506 Class lvalue; local
    [all...]
decl-init-ref.cpp 25 A& ra = f(); // expected-error {{non-const lvalue reference to type 'A' cannot bind to a temporary of type 'B'}}
29 PR6139 x = {{A()}}; // expected-error{{non-const lvalue reference to type 'A [1]' cannot bind to a temporary of type 'A'}}
block-call.cpp 7 int (*FPL) (int) = FP; // expected-error {{cannot initialize a variable of type 'int (*)(int)' with an lvalue of type 'int (*)()'}}
10 int (^PFR) (int) = IFP; // expected-error {{cannot initialize a variable of type 'int (^)(int)' with an lvalue of type 'int (^)()'}}
25 int * (^IPCC2) () = IPCC; // expected-error {{cannot initialize a variable of type 'int *(^)()' with an lvalue of type 'int *const (^)()'}}
33 int (^IPCC6) (int, char (^CArg) (float)) = IPCC4; // expected-error {{cannot initialize a variable of type 'int (^)(int, char (^)(float))' with an lvalue of type}}
  /external/clang/test/CXX/dcl.decl/dcl.init/dcl.init.ref/
p5-examples.cpp 10 // CHECK-NEXT: ImplicitCastExpr{{.*}}'const double' lvalue <NoOp>
20 // CHECK: ImplicitCastExpr{{.*}}'struct A' lvalue <DerivedToBase (A)>
23 // CHECK: ImplicitCastExpr{{.*}}'const struct A' lvalue <NoOp>
24 // CHECK: ImplicitCastExpr{{.*}}'struct A' lvalue <DerivedToBase (A)>
p5-var.cpp 45 // First bullet: lvalue references binding to lvalues (the simple cases).
54 Derived &dr2 = b; // expected-error{{non-const lvalue reference to type 'Derived' cannot bind to a value of unrelated type 'Base'}}
59 long &lr = i; // expected-error{{non-const lvalue reference to type 'long' cannot bind to a value of unrelated type 'int'}}
77 Base &br1 = Base(); // expected-error{{non-const lvalue reference to type 'Base' cannot bind to a temporary of type 'Base'}}
78 Base &br2 = Derived(); // expected-error{{non-const lvalue reference to type 'Base' cannot bind to a temporary of type 'Derived'}}
79 const volatile Base &br3 = Base(); // expected-error{{volatile lvalue reference to type 'const volatile Base' cannot bind to a temporary of type 'Base'}}
80 const volatile Base &br4 = Derived(); // expected-error{{volatile lvalue reference to type 'const volatile Base' cannot bind to a temporary of type 'Derived'}}
82 int &ir = 17; // expected-error{{non-const lvalue reference to type 'int' cannot bind to a temporary of type 'int'}}
86 Base &br1 = ur; // expected-error{{non-const lvalue reference to type 'Base' cannot bind to a value of unrelated type 'Unrelated'}}
87 const volatile Base &br2 = ur; // expected-error{{volatile lvalue reference to type 'const volatile Base' cannot bind to a value of unrelated type 'Unrelated'}
    [all...]
p5-0x.cpp 7 template<typename T> T& lvalue();
25 // - is an xvalue, class prvalue, array prvalue or function lvalue
40 // function lvalue case
45 // an xvalue, class prvalue, or function lvalue of type "cv3
57 // function lvalue
62 // conversion sequence includes an lvalue-to-rvalue conversion, the
106 double& rd2 = 2.0; // expected-error{{non-const lvalue reference to type 'double' cannot bind to a temporary of type 'double'}}
108 double& rd3 = i; // expected-error{{non-const lvalue reference to type 'double' cannot bind to a value of unrelated type 'int'}}
129 double&& rrd2 = d; // expected-error{{rvalue reference to type 'double' cannot bind to lvalue of type 'double'}}
  /external/clang/test/CodeGenCXX/
compound-literals.cpp 17 // CHECK: [[LVALUE:%[a-z0-9.]+]] = alloca
18 // CHECK-NEXT: [[I:%[a-z0-9]+]] = getelementptr inbounds {{.*}}* [[LVALUE]], i32 0, i32 0
20 // CHECK-NEXT: [[X:%[a-z0-9]+]] = getelementptr inbounds {{.*}} [[LVALUE]], i32 0, i32 1
22 // CHECK-NEXT: [[I:%[a-z0-9]+]] = getelementptr inbounds {{.*}} [[LVALUE]], i32 0, i32 0
  /external/clang/test/CXX/expr/expr.post/expr.reinterpret.cast/
p1-0x.cpp 3 // If T is an lvalue reference type or an rvalue reference to function
4 // type, the result is an lvalue; if T is an rvalue reference to
  /external/clang/test/Sema/
expr-address-of.c 90 lvalue we would need to give a warning. Note that gcc warns about
92 lvalue. */
93 int *_dummy0 = &(int*) arr; // expected-error {{address expression must be an lvalue or a function designator}}
94 int *_dummy1 = &(arr + 1); // expected-error {{address expression must be an lvalue or a function designator}}
112 void *dummy0 = &f8(); // expected-error {{address expression must be an lvalue or a function designator}}
115 void *dummy1 = &(1 ? v : f8()); // expected-error {{address expression must be an lvalue or a function designator}}
117 void *dummy2 = &(f8(), v); // expected-error {{address expression must be an lvalue or a function designator}}
119 void *dummy3 = &({ ; }); // expected-error {{address expression must be an lvalue or a function designator}}
  /external/clang/test/CXX/temp/temp.decls/temp.variadic/
p1.cpp 8 Tuple<int, float> *t2b = t2a; // expected-error{{cannot initialize a variable of type 'Tuple<int, float> *' with an lvalue of type 'Tuple<int, char> *'}}
  /external/clang/test/SemaTemplate/
class-template-id.cpp 12 return ptr2; // expected-error{{cannot initialize return object of type 'A<int, FLOAT> *' with an lvalue of type 'const A<int> *'}}
14 return ptr3; // expected-error{{cannot initialize return object of type 'A<int, FLOAT> *' with an lvalue of type 'A<int, double> *'}}
27 return ptr3; // expected-error{{cannot initialize return object of type 'B<17 + 2> *' with an lvalue of type 'B<19 - 3>}}
instantiate-typedef.cpp 11 return ptr; // expected-error{{cannot initialize return object of type 'add_pointer<float>::type' (aka 'float *') with an lvalue of type 'int *'}}
  /external/clang/lib/CodeGen/
CGValue.h 100 /// LValue - This represents an lvalue references. Because C/C++ allow
103 class LValue {
134 /// The alignment to use when accessing this lvalue.
143 // LValue is non-gc'able for any reason, including being a parameter or local
147 // Lvalue is a global reference of an objective-c object
150 // Lvalue is a thread local reference
155 /// TBAAInfo - TBAA information to attach to dereferences of this LValue.
231 // simple lvalue
238 // vector elt lvalue
    [all...]
CGExpr.cpp 142 LValue LV = MakeAddrLValue(Location, E->getType());
244 // Emit the expression as an lvalue.
245 LValue LV = CGF.EmitLValue(E);
254 // We have to load the lvalue.
263 LValue RefTempDst = CGF.MakeAddrLValue(ReferenceTemporary,
390 LValue LV =
402 LValue TempLV = CGF.MakeAddrLValue(Object,
538 EmitComplexPrePostIncDec(const UnaryOperator *E, LValue LV,
563 // Store the updated result through the lvalue.
573 // LValue Expression Emissio
    [all...]
  /external/llvm/test/Transforms/MemCpyOpt/
loadstore-sret.ll 12 %temp.lvalue = alloca %"class.std::auto_ptr", align 8
14 call void @_Z3barv(%"class.std::auto_ptr"* sret %temp.lvalue)
15 %tmp.i.i = getelementptr inbounds %"class.std::auto_ptr"* %temp.lvalue, i64 0, i32 0
  /external/ppp/pppd/plugins/radius/
avpair.c 77 vp->lvalue = len;
80 vp->lvalue = strlen((char *) pval);
90 vp->lvalue = * (UINT4 *) pval;
158 UINT4 lvalue; local
227 pair->lvalue = attrlen;
233 memcpy ((char *) &lvalue, (char *) ptr,
235 pair->lvalue = ntohl (lvalue);
268 UINT4 lvalue; local
322 pair->lvalue = vlen
    [all...]
  /external/clang/test/SemaObjC/
foreach.m 9 for ((id)2 in a); /* expected-error{{selector element is not a valid lvalue}} */
10 for (2 in a); /* expected-error{{selector element is not a valid lvalue}} */
  /frameworks/base/tools/aidl/
AST.h 130 Variable* lvalue; member in struct:Assignment
134 Assignment(Variable* lvalue, Expression* rvalue);
135 Assignment(Variable* lvalue, Expression* rvalue, Type* cast);
162 Expression* lvalue; member in struct:Comparison
166 Comparison(Expression* lvalue, const string& op, Expression* rvalue);
216 Variable* lvalue; member in struct:VariableDeclaration
220 VariableDeclaration(Variable* lvalue);
221 VariableDeclaration(Variable* lvalue, Expression* rvalue, Type* cast = NULL);
  /external/clang/test/CXX/temp/temp.decls/temp.class/temp.static/
p1.cpp 20 double*& get_double_ptr() { return X0<int*>::value; } // expected-error{{non-const lvalue reference to type 'double *' cannot bind to a value of unrelated type 'int *'}}

Completed in 2244 milliseconds

1 2 3 4 5 6 7 8 91011>>