C++: Add failing test.

This commit is contained in:
Mathias Vorreiter Pedersen
2023-10-30 17:05:43 +00:00
parent 91d224eea5
commit 0837e400a2
2 changed files with 10 additions and 0 deletions

View File

@@ -730,4 +730,12 @@ void test_strtol(char *source) {
sink(l); // $ ast,ir
sink(endptr); // $ ast,ir
sink(*endptr); // $ ast,ir
}
void *realloc(void *, size_t);
void test_realloc() {
char *source = indirect_source();
char *dest = (char*)realloc(source, 16);
sink(dest); // $ MISSING: ast,ir
}