cppcheck/addons/test/threadsafety/local_static_const.cpp

7 lines
70 B
C++

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