2 // { dg-options "-std=c++11" }
4 extern "C" int printf(const char*, ...);
6 A(int, char *p2) { printf(p2); }
8 template <int, typename> struct B { static A static_var; };
9 template <int LINE, typename GETTER>
10 A B<LINE, GETTER>::static_var{0, GETTER::get()};
13 static char function_static;
15 static char *get() { return &function_static; }
17 auto addr = B<0, D>::static_var;