check_deref: use add_dereference_hook()
[smatch.git] / validation / memops / type-punning-int2flt.c
blob061b742352c4ccdeeaf122222267ec2277aad99b
1 union u {
2 int i;
3 float f;
4 };
6 static float foo(void)
8 union u u = { .i = 3 };
9 return u.f;
13 * check-name: type-punning-int-to-float
14 * check description: must not infer the float value from the int
15 * check-command: test-linearize $file
17 * check-output-ignore
18 * check-output-contains: load\\.