mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
18 lines
275 B
C++
18 lines
275 B
C++
struct empty { };
|
|
|
|
template <typename T>
|
|
struct indirect {
|
|
typedef empty real;
|
|
};
|
|
|
|
template <typename i>
|
|
struct S : indirect<int>::real {
|
|
};
|
|
/*
|
|
Currently S's base class is simply 'empty'. We might want a
|
|
way to reach the unevaluated 'indirect<int>::real'.
|
|
*/
|
|
|
|
S<int> x;
|
|
|