1 int main(int argc
, const char* argv
[])
3 #ifndef __clang_analyzer__ /* Suppress clang-analyzer warnings */
4 /* Construct an invalid address that cannot be predicted by the
5 compiler/optimizer, and that is not NULL (which is undefined
6 behavior to dereference). */
7 volatile int* invalidAddress
= 0;
8 invalidAddress
+= argc
? 1 : 2;
10 /* Write to the invalid address to cause SIGSEGV or similar. */