cppcheck/addons/cert-test.c

8 lines
193 B
C
Raw Normal View History

2017-10-15 16:18:29 +02:00
// To test:
// ~/cppcheck/cppcheck --dump cert-test.c && python cert.py -verify cert-test.c.dump
unsigned char f(int x) {
if (x==1000) {}
return (unsigned char)x; // cert-INT31-c
}