Fix test case for #10186 (#3253)

This commit is contained in:
Rikard Falkeborn 2021-05-10 08:01:30 +02:00 committed by GitHub
parent 040069ab4d
commit b013f1b3d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 7 deletions

View File

@ -429,13 +429,7 @@ private:
void assign21() { // #10186
check("void f(int **x) {\n"
" void *p = malloc(10);\n"
" *x = p;\n"
"}", true);
ASSERT_EQUALS("", errout.str());
check("void f(struct str *d) {\n"
" void *p = malloc(10);\n"
" d->a = p;\n"
" *x = (int*)p;\n"
"}", true);
ASSERT_EQUALS("", errout.str());
}