1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - | not grep define 2*f4a2713aSLionel Sambuc // PR7415 3*f4a2713aSLionel Sambuc class X { 4*f4a2713aSLionel Sambuc template <class Dummy> struct COMTypeInfo { 5*f4a2713aSLionel Sambuc static const int kIID; 6*f4a2713aSLionel Sambuc }; GetIID()7*f4a2713aSLionel Sambuc static const int& GetIID() {return COMTypeInfo<int>::kIID;} 8*f4a2713aSLionel Sambuc }; 9*f4a2713aSLionel Sambuc template <class Dummy> const int X::COMTypeInfo<Dummy>::kIID = 10; 10*f4a2713aSLionel Sambuc 11*f4a2713aSLionel Sambuc 12*f4a2713aSLionel Sambuc 13