Lines Matching refs:P
4 void test0(char *P) { in test0() argument
7 a = (char*) P; in test0()
8 a = static_cast<char*>(P); in test0()
9 a = reinterpret_cast<char*>(P); in test0()
11 a = CharPtr(P); in test0()
13 …b = (short*) P; // expected-warning {{cast from 'char *' to 'short *' increases required alignment… in test0()
14 b = reinterpret_cast<short*>(P); in test0()
16 …b = ShortPtr(P); // expected-warning {{cast from 'char *' to 'ShortPtr' (aka 'short *') increases … in test0()
18 …c = (int*) P; // expected-warning {{cast from 'char *' to 'int *' increases required alignment fro… in test0()
19 c = reinterpret_cast<int*>(P); in test0()
21 …c = IntPtr(P); // expected-warning {{cast from 'char *' to 'IntPtr' (aka 'int *') increases requir… in test0()
25 void test1(void *P) { in test1() argument
28 a = (char*) P; in test1()
29 a = static_cast<char*>(P); in test1()
30 a = reinterpret_cast<char*>(P); in test1()
32 a = CharPtr(P); in test1()
34 b = (short*) P; in test1()
35 b = static_cast<short*>(P); in test1()
36 b = reinterpret_cast<short*>(P); in test1()
38 b = ShortPtr(P); in test1()
40 c = (int*) P; in test1()
41 c = static_cast<int*>(P); in test1()
42 c = reinterpret_cast<int*>(P); in test1()
44 c = IntPtr(P); in test1()