Fixed the issue that qualifiers of pointees of function parameters were ignored for type compatibility check.

This commit is contained in:
acqn
2023-12-09 14:34:37 +08:00
parent 519a52d92c
commit b7e7bb7489
3 changed files with 16 additions and 8 deletions

View File

@@ -0,0 +1,4 @@
/* Bug #2286 - Qualifiers of pointees of function parameters ignored for type compatibility check */
void woo(int* p);
void woo(const int* p); /* WRONG: Should be an error */