1*1f5207b7SJohn Levon static unsigned int comparison = (void *)0 == 1; 2*1f5207b7SJohn Levon /* 3*1f5207b7SJohn Levon * check-name: Compare null pointer constant to int 4*1f5207b7SJohn Levon * check-description: Sparse used to allow this. 5*1f5207b7SJohn Levon * 6*1f5207b7SJohn Levon * check-error-start 7*1f5207b7SJohn Levon compare-null-to-int.c:1:44: error: incompatible types for operation (==) 8*1f5207b7SJohn Levon compare-null-to-int.c:1:44: left side has type void * 9*1f5207b7SJohn Levon compare-null-to-int.c:1:44: right side has type int 10*1f5207b7SJohn Levon * check-error-end 11*1f5207b7SJohn Levon */ 12