1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 %s -emit-llvm-only -verify 2*f4a2713aSLionel Sambuc // expected-no-diagnostics 3*f4a2713aSLionel Sambuc 4*f4a2713aSLionel Sambuc struct F { 5*f4a2713aSLionel Sambuc void (*x)(); 6*f4a2713aSLionel Sambuc }; 7*f4a2713aSLionel Sambuc void G(); 8*f4a2713aSLionel Sambuc template<class T> class A { 9*f4a2713aSLionel Sambuc public: A(); 10*f4a2713aSLionel Sambuc }; A()11*f4a2713aSLionel Sambuctemplate<class T> A<T>::A() { 12*f4a2713aSLionel Sambuc static F f = { G }; 13*f4a2713aSLionel Sambuc } 14*f4a2713aSLionel Sambuc A<int> a; 15