cppcheck/addons/test/threadsafety/local_static.cpp

8 lines
117 B
C++

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