mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-18 12:56:50 +00:00

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]
8 lines
200 B
C
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);
|
|
}
|