mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
Update cpp/ql/test/library-tests/controlflow/dereferenced/dereferenced.cpp
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com>
This commit is contained in:
@@ -16,7 +16,7 @@ void test1(int *ptr, int &ref)
|
||||
ptr[0] = 0; // `ptr` dereferenced
|
||||
ptr = 0;
|
||||
|
||||
(*ptr)++; // `ptr` dereferenced
|
||||
(*ptr)++; // `ptr`, `*ptr` dereferenced
|
||||
*(ptr++); // `ptr++` dereferenced
|
||||
ptr++;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user