1 // RUN: %clang_analyze_cc1 -analyzer-checker=core,unix.Malloc -Wno-incompatible-library-redeclaration -verify %s
3 // Various tests to make the analyzer is robust against custom
4 // redeclarations of memory routines.
6 // You wouldn't expect to see much of this in normal code, but, for example,
7 // CMake tests can generate these.
9 // expected-no-diagnostics
21 void testCustomArgumentlessAllocation(void) {
24 realloc(); // no-crash
25 kmalloc(); // no-crash