Files
codeql/cpp/ql/test/library-tests/templates/CPP-203/test.cpp
2018-08-02 17:53:23 +01:00

15 lines
223 B
C++

template<class T>
struct Str {
static int const val;
};
template<class T>
int const Str<T>::val = 3;
void f(void) {
int const x = Str<int>::val;
}
// previously compiling this caused an assert in the extractor.