param_key: fix container of when no struct member is referenced
[smatch.git] / validation / compare-null-to-int.c
blob336c724dec60e6663b875c615e1ef2b9be6350f4
1 static unsigned int comparison = (void *)0 == 1;
2 /*
3 * check-name: Compare null pointer constant to int
4 * check-description: Sparse used to allow this.
6 * check-error-start
7 compare-null-to-int.c:1:44: error: incompatible types for operation (==):
8 compare-null-to-int.c:1:44: void *
9 compare-null-to-int.c:1:44: int
10 * check-error-end