gbMattN 1c0af8dced
[TySan] Added tests for methods of ignoring instrumentation (#124125)
TySan supports some preprocessor checks and ignorelists, but they are
currently untested. This PR adds some tests to make sure they all work.

@fhahn @AaronBallman, this is based off the discussion in the
documentation PR [#123595]
2025-01-24 09:33:37 +00:00

8 lines
200 B
C

// Used as part of the ignorelist.c test
// tests if the "src:" ignorelist directive works
#include <stdio.h>
void typeViolationMultiFile(void *value) {
printf("As long: %ld\n", *(long *)value);
}