fix crash with sym->bb_target == NULL
[smatch.git] / validation / optim / fpcast-nop.c
blobc2e7ba87fabac40d05e24e8dbf049ed342afe7e8
1 static float foof( float a) { return ( float) a; }
2 static double food(double a) { return (double) a; }
3 static long double fool(long double a) { return (long double) a; }
5 /*
6 * check-name: fpcast-nop
7 * check-description:
8 * Verify that unneeded casts between same-type
9 * floats are also optimized away.
11 * check-command: test-linearize $file
12 * check-output-ignore
14 * check-output-excludes: fpcast\\.