cppcheck/test/cli/proj-inline-suppress/3.cpp

7 lines
154 B
C++
Raw Normal View History

// From forum: https://sourceforge.net/p/cppcheck/discussion/general/thread/e67653efdb/
void foo()
{ // cppcheck-suppress zerodiv
int x = 10000 / 0;
}