cppcheck/addons/test/threadsafety/local_static.cpp

7 lines
64 B
C++

struct Dummy {
int x;
};
void func() {
static Dummy dummy;
}