You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
inta(int*x); // expected-note{{passing argument to parameter 'x' here}}
4
5
intb(unsigned*y) { returna(y); } // expected-warning {{passing 'unsigned int *' to parameter of type 'int *' converts between pointers to integer types with different sign}}
5
6
7
+
signed char*plainCharToSignedChar(signed char*arg) { // expected-note{{passing argument to parameter}}
8
+
externcharc;
9
+
signed char*p=&c; // expected-warning {{converts between pointers to integer types with different sign}}
10
+
struct { signed char*p; } s= { &c }; // expected-warning {{converts between pointers to integer types with different sign}}
11
+
p=&c; // expected-warning {{converts between pointers to integer types with different sign}}
12
+
plainCharToSignedChar(&c); // expected-warning {{converts between pointers to integer types with different sign}}
13
+
return&c; // expected-warning {{converts between pointers to integer types with different sign}}
14
+
}
15
+
16
+
char*unsignedCharToPlainChar(char*arg) { // expected-note{{passing argument to parameter}}
17
+
externunsigned charuc[];
18
+
char*p=uc; // expected-warning {{converts between pointers to integer types with different sign}}
19
+
(void) (char*[]){ [42] =uc }; // expected-warning {{converts between pointers to integer types with different sign}}
20
+
p=uc; // expected-warning {{converts between pointers to integer types with different sign}}
21
+
unsignedCharToPlainChar(uc); // expected-warning {{converts between pointers to integer types with different sign}}
22
+
returnuc; // expected-warning {{converts between pointers to integer types with different sign}}
0 commit comments