C++: Add some query tests.

This commit is contained in:
Mathias Vorreiter Pedersen
2024-03-13 11:39:34 +00:00
parent bcd36b1994
commit 3ea39a2553
5 changed files with 31 additions and 0 deletions

View File

@@ -293,4 +293,11 @@ void test_free_struct4(char* buf, MyStruct s) {
free(buf);
s.buf = buf;
char c = s.buf[0]; // BAD
}
void g_free (void*);
void test_g_free(char* buf) {
g_free(buf);
g_free(buf); // BAD
}