cppcheck/addons/test/threadsafety/local_static_const.cpp

8 lines
125 B
C++

struct Dummy {
int x;
};
void func() {
// cppcheck-suppress threadsafety-threadsafety-const
static const Dummy dummy;
}