blob: 27f7cd2243de11cc76068ef57d770b50464838a5 [file] [log] [blame]
// Origin: John Wilkinson <jfw@sgi.com>
template <class T, int& Size>
struct Base {
Base() : obj(Size) {}
T obj;
};
int globalInt = 5;
struct A {
A(int arg) : ia(arg) {}
int ia;
};
int main()
{
Base<A, globalInt> ob;
if (ob.obj.ia != 5)
return 1;
}