Files
codeql/cpp/ql/test/library-tests/name_qualifiers/inconsistency2.cpp
Jeroen Ketema 98f147556a C++: Add namequalifier test with inconsistency
While where the remove the file restriction in QL.
2026-06-10 14:27:56 +02:00

13 lines
133 B
C++

namespace {
template <typename T> T f() {
T::x;
return {};
}
struct s {
static int x;
};
struct t {
s x = f<const s>();
};
}