2 // { dg-require-effective-target fpic }
3 // { dg-require-effective-target shared }
4 // { dg-lto-options { { -fPIC -flto -g -shared } } }
8 int const c = 0, d = 1, f = 2, g = 3;
13 template <class> B j();
14 template <class> struct k_context { static B const e_missingvar; };
15 template <class l> B const k_context<l>::e_missingvar = j<l>();
20 return k_context<int>::e_missingvar;