blob: cc81662afa69fb00d0e0d7c28e2eee55000a3c5f [file] [log] [blame]
static unsigned long foo(unsigned long val, void *ref)
{
if (val >= ref)
val = 0;
return val;
}
/*
* check-name: bad-type-twice1
*
* check-error-start
bad-type-twice1.c:3:17: error: incompatible types for operation (>=)
bad-type-twice1.c:3:17: left side has type unsigned long val
bad-type-twice1.c:3:17: right side has type void *ref
* check-error-end
*/