parent
040069ab4d
commit
b013f1b3d0
|
@ -429,13 +429,7 @@ private:
|
||||||
void assign21() { // #10186
|
void assign21() { // #10186
|
||||||
check("void f(int **x) {\n"
|
check("void f(int **x) {\n"
|
||||||
" void *p = malloc(10);\n"
|
" void *p = malloc(10);\n"
|
||||||
" *x = p;\n"
|
" *x = (int*)p;\n"
|
||||||
"}", true);
|
|
||||||
ASSERT_EQUALS("", errout.str());
|
|
||||||
|
|
||||||
check("void f(struct str *d) {\n"
|
|
||||||
" void *p = malloc(10);\n"
|
|
||||||
" d->a = p;\n"
|
|
||||||
"}", true);
|
"}", true);
|
||||||
ASSERT_EQUALS("", errout.str());
|
ASSERT_EQUALS("", errout.str());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue