/art/test/069-field-type/ |
expected.txt | 0 Assignment was allowed
|
/toolchain/binutils/binutils-2.25/gas/testsuite/gas/all/ |
assign.d | 2 #name : assignment tests
|
/external/clang/test/SemaCXX/ |
warn-assignment-condition.cpp | 15 if (x = 7) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} \ 16 // expected-note{{use '==' to turn this assignment into an equality comparison}} \ 17 // expected-note{{place parentheses around the assignment to silence this warning}} 20 } while (x = 7); // expected-warning {{using the result of an assignment as a condition without parentheses}} \ 21 // expected-note{{use '==' to turn this assignment into an equality comparison}} \ 22 // expected-note{{place parentheses around the assignment to silence this warning}} 25 while (x = 7) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} \ 26 // expected-note{{use '==' to turn this assignment into an equality comparison}} \ 27 // expected-note{{place parentheses around the assignment to silence this warning}} 30 for (; x = 7; ) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} [all...] |
default-assignment-operator.cpp | 3 class Base { // expected-error {{cannot define the implicit copy assignment operator for 'Base', because non-static reference member 'ref' cannot use copy assignment operator}} \ 9 class X : Base { // // expected-error {{cannot define the implicit copy assignment operator for 'X', because non-static const member 'cint' cannot use copy assignment operator}} \ 10 // expected-note{{assignment operator for 'Base' first required here}} 31 x = cx; // expected-note{{assignment operator for 'X' first required here}} 76 class E1 { // expected-error{{cannot define the implicit copy assignment operator for 'E1', because non-static const member 'a' cannot use copy assignment operator}} 87 e1 = e2; // expected-note{{assignment operator for 'E1' first required here}} 104 void f(Z z) { z = z; } // expected-note{{implicit copy assignment operator} [all...] |
warn-unused-comparison.cpp | 19 // expected-note {{use '=' to turn this equality comparison into an assignment}} 21 // expected-note {{use '|=' to turn this inequality comparison into an or-assignment}} 29 // expected-note {{use '=' to turn this equality comparison into an assignment}} \ 32 // expected-note {{use '=' to turn this equality comparison into an assignment}} 34 // expected-note {{use '=' to turn this equality comparison into an assignment}} 36 // expected-note {{use '|=' to turn this inequality comparison into an or-assignment}} 44 // expected-note {{use '=' to turn this equality comparison into an assignment}} 46 // expected-note {{use '=' to turn this equality comparison into an assignment}} 48 // expected-note {{use '=' to turn this equality comparison into an assignment}} 50 // expected-note {{use '=' to turn this equality comparison into an assignment}} [all...] |
/external/clang/test/FixIt/ |
no-macro-fixit.c | 12 while (value = va_arg(values, int)) { // expected-warning {{using the result of an assignment as a condition without parentheses}} \ 13 // expected-note {{use '==' to turn this assignment into an equality comparison}} \ 14 // expected-note {{place parentheses around the assignment to silence this warning}}
|
/build/kati/testcase/ |
assign_after_tab.mk | 1 # This is an assignment.
|
/prebuilts/go/darwin-x86/src/cmd/vet/testdata/ |
assign.go | 5 // This file contains tests for the useless-assignment checker. 14 // Accidental self-assignment; it should be "s.x = x" 15 x = x // ERROR "self-assignment of x to x" 17 s.x = s.x // ERROR "self-assignment of s.x to s.x"
|
atomic.go | 17 x = atomic.AddUint64(&x, 1) // ERROR "direct assignment to atomic value" 18 _, x = 10, atomic.AddUint64(&x, 1) // ERROR "direct assignment to atomic value" 19 x, _ = atomic.AddUint64(&x, 1), 10 // ERROR "direct assignment to atomic value" 22 *y = atomic.AddUint64(y, 1) // ERROR "direct assignment to atomic value" 25 su.Counter = atomic.AddUint64(&su.Counter, 1) // ERROR "direct assignment to atomic value" 30 *sp.Counter = atomic.AddUint64(sp.Counter, 1) // ERROR "direct assignment to atomic value" 35 au[0] = atomic.AddUint64(&au[0], 1) // ERROR "direct assignment to atomic value" 39 *ap[0] = atomic.AddUint64(ap[0], 1) // ERROR "direct assignment to atomic value" 49 x, w := atomic.AddUint64(&x, 1), 10 // ERROR "direct assignment to atomic value"
|
/prebuilts/go/linux-x86/src/cmd/vet/testdata/ |
assign.go | 5 // This file contains tests for the useless-assignment checker. 14 // Accidental self-assignment; it should be "s.x = x" 15 x = x // ERROR "self-assignment of x to x" 17 s.x = s.x // ERROR "self-assignment of s.x to s.x"
|
atomic.go | 17 x = atomic.AddUint64(&x, 1) // ERROR "direct assignment to atomic value" 18 _, x = 10, atomic.AddUint64(&x, 1) // ERROR "direct assignment to atomic value" 19 x, _ = atomic.AddUint64(&x, 1), 10 // ERROR "direct assignment to atomic value" 22 *y = atomic.AddUint64(y, 1) // ERROR "direct assignment to atomic value" 25 su.Counter = atomic.AddUint64(&su.Counter, 1) // ERROR "direct assignment to atomic value" 30 *sp.Counter = atomic.AddUint64(sp.Counter, 1) // ERROR "direct assignment to atomic value" 35 au[0] = atomic.AddUint64(&au[0], 1) // ERROR "direct assignment to atomic value" 39 *ap[0] = atomic.AddUint64(ap[0], 1) // ERROR "direct assignment to atomic value" 49 x, w := atomic.AddUint64(&x, 1), 10 // ERROR "direct assignment to atomic value"
|
/external/eigen/doc/snippets/ |
TopicAliasing_block.cpp | 5 // This assignment shows the aliasing problem 7 cout << "After the assignment, mat = \n" << mat << endl;
|
/prebuilts/go/darwin-x86/src/go/types/testdata/ |
conversions2.src | 23 s = t // ERROR "cannot use .* in assignment" 43 s = t // ERROR "cannot use .* in assignment" 44 s = u // ERROR "cannot use .* in assignment" 48 t = u // ERROR "cannot use .* in assignment" 64 s = t // ERROR "cannot use .* in assignment" 65 s = u // ERROR "cannot use .* in assignment" 69 t = u // ERROR "cannot use .* in assignment" 92 s = t // ERROR "cannot use .* in assignment" 93 s = u // ERROR "cannot use .* in assignment" 97 t = u // ERROR "cannot use .* in assignment" [all...] |
/prebuilts/go/darwin-x86/test/ |
convert2.go | 25 s = t // ERROR "cannot use .* in assignment" 45 s = t // ERROR "cannot use .* in assignment" 46 s = u // ERROR "cannot use .* in assignment" 50 t = u // ERROR "cannot use .* in assignment" 66 s = t // ERROR "cannot use .* in assignment" 67 s = u // ERROR "cannot use .* in assignment" 71 t = u // ERROR "cannot use .* in assignment" 94 s = t // ERROR "cannot use .* in assignment" 95 s = u // ERROR "cannot use .* in assignment" 99 t = u // ERROR "cannot use .* in assignment" [all...] |
/prebuilts/go/linux-x86/src/go/types/testdata/ |
conversions2.src | 23 s = t // ERROR "cannot use .* in assignment" 43 s = t // ERROR "cannot use .* in assignment" 44 s = u // ERROR "cannot use .* in assignment" 48 t = u // ERROR "cannot use .* in assignment" 64 s = t // ERROR "cannot use .* in assignment" 65 s = u // ERROR "cannot use .* in assignment" 69 t = u // ERROR "cannot use .* in assignment" 92 s = t // ERROR "cannot use .* in assignment" 93 s = u // ERROR "cannot use .* in assignment" 97 t = u // ERROR "cannot use .* in assignment" [all...] |
/prebuilts/go/linux-x86/test/ |
convert2.go | 25 s = t // ERROR "cannot use .* in assignment" 45 s = t // ERROR "cannot use .* in assignment" 46 s = u // ERROR "cannot use .* in assignment" 50 t = u // ERROR "cannot use .* in assignment" 66 s = t // ERROR "cannot use .* in assignment" 67 s = u // ERROR "cannot use .* in assignment" 71 t = u // ERROR "cannot use .* in assignment" 94 s = t // ERROR "cannot use .* in assignment" 95 s = u // ERROR "cannot use .* in assignment" 99 t = u // ERROR "cannot use .* in assignment" [all...] |
/external/clang/test/SemaObjC/ |
self-assign.m | 9 if (self = [self :x :y]) {} // expected-warning{{using the result of an assignment as a condition without parentheses}} \ 10 // expected-note{{use '==' to turn this assignment into an equality comparison}} \ 11 // expected-note{{place parentheses around the assignment to silence this warning}}
|
/external/clang/test/CodeGen/ |
2002-07-31-SubregFailure.c | 11 Assignment(*abase.ap);
|
debug-info-block-decl.c | 2 // Assignment and block entry should point to the same line. 6 // CHECK: store{{.*}}bitcast{{.*}}, !dbg ![[ASSIGNMENT:[0-9]+]] 12 // CHECK: [[ASSIGNMENT]] = !DILocation(line: [[@LINE+2]],
|
/frameworks/compile/mclinker/include/mcld/Script/ |
Assignment.h | 1 //===- Assignment.h -------------------------------------------------------===// 21 /** \class Assignment 22 * \brief This class defines the interfaces to assignment command. 25 class Assignment : public ScriptCommand { 36 Assignment(Level pLevel, Type pType, SymOperand& pSymbol, RpnExpr& pRpnExpr); 38 ~Assignment(); 40 Assignment& operator=(const Assignment& pAssignment); 55 return pCmd->getKind() == ScriptCommand::ASSIGNMENT;
|
/prebuilts/go/darwin-x86/test/fixedbugs/bug324.dir/ |
prog.go | 30 // this assignment is correctly illegal: 34 // this assignment is correctly illegal: 38 // this assignment is correctly illegal: 42 // this assignment unexpectedly compiles and then executes 50 // this is a legitimate call, but because of the previous assignment,
|
/prebuilts/go/linux-x86/test/fixedbugs/bug324.dir/ |
prog.go | 30 // this assignment is correctly illegal: 34 // this assignment is correctly illegal: 38 // this assignment is correctly illegal: 42 // this assignment unexpectedly compiles and then executes 50 // this is a legitimate call, but because of the previous assignment,
|
/frameworks/compile/mclinker/lib/Script/ |
Assignment.cpp | 1 //===- Assignment.cpp -----------------------------------------------------===// 9 #include "mcld/Script/Assignment.h" 28 // Assignment 30 Assignment::Assignment(Level pLevel, 34 : ScriptCommand(ScriptCommand::ASSIGNMENT), 41 Assignment::~Assignment() { 44 Assignment& Assignment::operator=(const Assignment& pAssignment) [all...] |
/external/clang/test/CXX/expr/expr.prim/expr.prim.lambda/ |
p19.cpp | 15 // Copy assignment operator 16 lambda1 = lambda1; // expected-error{{copy assignment operator is implicitly deleted}} 18 // Move assignment operator
|
/external/clang/test/CXX/special/class.copy/ |
p20.cpp | 18 struct ImplicitNonConstCopy1 : NonConstCopy { // expected-note{{the implicit copy assignment operator}} 22 struct ImplicitNonConstCopy2 { // expected-note{{the implicit copy assignment operator}} 27 struct ImplicitNonConstCopy3 { // expected-note{{the implicit copy assignment operator}}
|