foo(unsigned long val,void * ref)1*c85f09ccSJohn Levonstatic unsigned long foo(unsigned long val, void *ref) 2*c85f09ccSJohn Levon { 3*c85f09ccSJohn Levon if (val >= ref) 4*c85f09ccSJohn Levon val = 0; 5*c85f09ccSJohn Levon return val; 6*c85f09ccSJohn Levon } 7*c85f09ccSJohn Levon 8*c85f09ccSJohn Levon /* 9*c85f09ccSJohn Levon * check-name: bad-type-twice1 10*c85f09ccSJohn Levon * 11*c85f09ccSJohn Levon * check-error-start 12*c85f09ccSJohn Levon bad-type-twice1.c:3:17: error: incompatible types for operation (>=) 13*c85f09ccSJohn Levon bad-type-twice1.c:3:17: left side has type unsigned long val 14*c85f09ccSJohn Levon bad-type-twice1.c:3:17: right side has type void *ref 15*c85f09ccSJohn Levon * check-error-end 16*c85f09ccSJohn Levon */ 17