added comment in test case
This commit is contained in:
parent
72d24ab4b4
commit
abde1d0ec1
|
@ -5184,6 +5184,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
void linkedlist() {
|
void linkedlist() {
|
||||||
|
// #3904 - false positive when linked list is used
|
||||||
check("static void foo() {\n"
|
check("static void foo() {\n"
|
||||||
" struct ABC *abc = malloc(sizeof(struct ABC));\n"
|
" struct ABC *abc = malloc(sizeof(struct ABC));\n"
|
||||||
" abc->next = malloc(sizeof(struct ABC));\n"
|
" abc->next = malloc(sizeof(struct ABC));\n"
|
||||||
|
|
Loading…
Reference in New Issue