template struct S { S() {} }; template inline int x = 0; extern template struct S; extern template int x; template int* foo() { static int x; return &x; }; extern template int* foo();