Home
last modified time | relevance | path

Searched refs:obj_p (Results 1 – 13 of 13) sorted by relevance

/external/clang/test/SemaObjC/
Dcomptypes-1.m22 id<MyProtocol> obj_p = nil;
29 obj = obj_p; /* Ok */
44 obj_p = obj; /* Ok */
45obj_p = obj_c; // expected-warning {{assigning to 'id<MyProtocol>' from incompatible type 'MyClas…
46 obj_p = obj_cp; /* Ok */
47obj_p = obj_C; // expected-warning {{incompatible pointer types assigning to 'id<MyProtocol>' fro…
54 obj_cp = obj_p; /* Ok */
58 if (obj == obj_p) foo() ; /* Ok */ /*Bogus warning here in 2.95.4*/
59 if (obj_p == obj) foo() ; /* Ok */
69 …if (obj_p == obj_c) foo() ; // expected-warning {{comparison of distinct pointer types ('id<MyProt…
[all …]
Dcomptypes-2.m17 id<MyProtocol> obj_p = nil;
23 obj = (id)obj_p;
27 obj_c = (MyClass *)obj_p;
29 obj_p = (id<MyProtocol>)obj;
30 obj_p = (id<MyProtocol>)obj_c;
31 obj_p = (id<MyProtocol>)obj_C;
33 obj_C = (Class)obj_p;
Dcomptypes-4.m11 MyClass <MyProtocol> *obj_p;
14 obj_cp = obj_p;
15obj_p = obj_cp; // expected-warning {{incompatible pointer types assigning to 'MyClass<MyProtocol>…
17 if (obj_cp == obj_p)
20 if (obj_p == obj_cp)
Dcomptypes-7.m18 id <MyProtocol> obj_p = nil;
30obj_p = i; // expected-warning {{incompatible integer to pointer conversion assigning to 'id<MyPro…
31obj_p = j; // expected-warning {{incompatible pointer types assigning to 'id<MyProtocol>' from 'in…
40 …i = obj_p; // expected-warning {{incompatible pointer to integer conversion assigning to 'int' fro…
45 …j = obj_p; // expected-warning {{incompatible pointer types assigning to 'int *' from 'id<MyProtoc…
59 …if (obj_p == i) foo() ; // expected-warning {{comparison between pointer and integer ('id<MyProtoc…
60 …if (i == obj_p) foo() ; // expected-warning {{comparison between pointer and integer ('int' and 'i…
61 …if (obj_p == j) foo() ; // expected-warning {{comparison of distinct pointer types ('id<MyProtocol…
62 …if (j == obj_p) foo() ; // expected-warning {{comparison of distinct pointer types ('int *' and 'i…
Dcomptypes-8.m7 id<MyProtocol> obj_p = 0;
11 obj_p = 0;
/external/llvm-project/clang/test/SemaObjC/
Dcomptypes-2.m17 id<MyProtocol> obj_p = nil;
23 obj = (id)obj_p;
27 obj_c = (MyClass *)obj_p;
29 obj_p = (id<MyProtocol>)obj;
30 obj_p = (id<MyProtocol>)obj_c;
31 obj_p = (id<MyProtocol>)obj_C;
33 obj_C = (Class)obj_p;
Dcomptypes-1.m22 id<MyProtocol> obj_p = nil;
30 obj = obj_p; /* Ok */
39 …obj_c = obj_p; // expected-warning {{assigning to 'MyClass *' from incompatible type 'id<MyProtoc…
48 obj_p = obj; /* Ok */
49obj_p = obj_c; // expected-warning {{assigning to 'id<MyProtocol>' from incompatible type 'MyClas…
50 obj_p = obj_cp; /* Ok */
51obj_p = obj_C; // expected-warning {{incompatible pointer types assigning to 'id<MyProtocol>' fro…
52obj_p = obj_CP; // expected-warning {{assigning to 'id<MyProtocol>' from incompatible type 'Class<…
59 obj_cp = obj_p; /* Ok */
64 …obj_C = obj_p; // expected-warning {{incompatible pointer types assigning to 'Class' from 'id<My…
[all …]
Dcomptypes-4.m11 MyClass <MyProtocol> *obj_p;
14 obj_cp = obj_p;
15obj_p = obj_cp; // expected-warning {{incompatible pointer types assigning to 'MyClass<MyProtocol>…
17 if (obj_cp == obj_p)
20 if (obj_p == obj_cp)
Dcomptypes-7.m17 id <MyProtocol> obj_p = nil;
29obj_p = i; // expected-warning {{incompatible integer to pointer conversion assigning to 'id<MyPro…
30obj_p = j; // expected-warning {{incompatible pointer types assigning to 'id<MyProtocol>' from 'in…
39 …i = obj_p; // expected-warning {{incompatible pointer to integer conversion assigning to 'int' fro…
44 …j = obj_p; // expected-warning {{incompatible pointer types assigning to 'int *' from 'id<MyProtoc…
58 …if (obj_p == i) foo() ; // expected-warning {{comparison between pointer and integer ('id<MyProtoc…
59 …if (i == obj_p) foo() ; // expected-warning {{comparison between pointer and integer ('int' and 'i…
60 …if (obj_p == j) foo() ; // expected-warning {{comparison of distinct pointer types ('id<MyProtocol…
61 …if (j == obj_p) foo() ; // expected-warning {{comparison of distinct pointer types ('int *' and 'i…
Dcomptypes-8.m7 id<MyProtocol> obj_p = 0;
11 obj_p = 0;
/external/llvm-project/clang/test/SemaObjCXX/
Dcomptypes-1.mm22 id<MyProtocol> obj_p = nil;
30 obj = obj_p; /* Ok */
39 …obj_c = obj_p; // expected-error {{assigning to 'MyClass *' from incompatible type 'id<MyProtocol…
48 obj_p = obj; /* Ok */
49obj_p = obj_c; // expected-error {{assigning to 'id<MyProtocol>' from incompatible type 'MyClass …
50 obj_p = obj_cp; /* Ok */
51obj_p = obj_C; // expected-error {{incompatible pointer types assigning to 'id<MyProtocol>' from …
52obj_p = obj_CP; // expected-error {{assigning to 'id<MyProtocol>' from incompatible type 'Class<My…
59 obj_cp = obj_p; /* Ok */
64 …obj_C = obj_p; // expected-error {{incompatible pointer types assigning to 'Class' from 'id<MyPr…
[all …]
Dcomptypes-7.mm17 id <MyProtocol> obj_p = nil;
29obj_p = i; // expected-error {{incompatible integer to pointer conversion assigning to 'id<MyProto…
30obj_p = j; // expected-error {{incompatible pointer types assigning to 'id<MyProtocol>' from 'int …
39 …i = obj_p; // expected-error {{incompatible pointer to integer conversion assigning to 'int' from …
44 …j = obj_p; // expected-error {{incompatible pointer types assigning to 'int *' from 'id<MyProtocol…
58 …if (obj_p == i) foo() ; // expected-error {{comparison between pointer and integer ('id<MyProtocol…
59 …if (i == obj_p) foo() ; // expected-error {{comparison between pointer and integer ('int' and 'id<…
60 …if (obj_p == j) foo() ; // expected-error {{comparison of distinct pointer types ('id<MyProtocol>'…
61 …if (j == obj_p) foo() ; // expected-error {{comparison of distinct pointer types ('int *' and 'id<…
/external/python/cpython3/Objects/
Dtypeobject.c8065 PyTypeObject **type_p, PyObject **obj_p) in super_init_without_args() argument
8136 *obj_p = obj; in super_init_without_args()