C++程序  |  21行  |  1.33 KB

// Bug 186796:  function names of over 200 chars in suppressions were being
// truncated and so not matching.  This 200 char limit is easily overcome with
// C++ templates.  It now is assigned dynamically.

#include <stdlib.h>

#define F1000 \
f1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890

void F1000(void)
{
   int* x = malloc(sizeof(int));
   x[1] = 1;
}

int main(void)
{
   F1000();
   return 0;
}