mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
15 lines
223 B
C++
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.
|