Csmith (@ commit ac43da8, circa Mar 20 2013) sometimes generates code like
this:
void foo()
{
int *p = 0;
volatile int **q = &p;
}
GCC 4.6.3 complains about this code, scolding:
warning: initialization from incompatible pointer type [enabled by
default]
I noticed this because my predicate script for C-Reduce looks for "incompatible
pointer type" warnings to weed out bad reduction steps. When the original
program leads to such warnings, of course, my reductions cannot get off the
ground.
If you want a Csmith command line that leads to such generated code, please let
me know.
Eric.