Searched defs:wrong_inst (Results 1 - 1 of 1) sorted by relevance

/external/clang/test/SemaCXX/
H A Dcxx1y-variable-templates_in_class.cpp64 template<typename T> static T wrong_inst = T(10); // expected-error {{non-const static data member must be initialized out of line}} member in class:non_const_init::A
67 template int A::wrong_inst<int>; // expected-note {{in instantiation of static data member 'non_const_init::A::wrong_inst<int>' requested here}} member in class:non_const_init::A
72 template<typename T> static T wrong_inst; member in class:non_const_init::B
73 template<typename T> static T wrong_inst<T*> = T(100); // expected-error {{non-const static data member must be initialized out of line}} member in class:non_const_init::B
78 template int B::wrong_inst<int*>; // expected-note {{in instantiation of static data member 'non_const_init::B::wrong_inst<int *>' requested here}} member in class:non_const_init::B

Completed in 56 milliseconds