// RUN: %clang_cc1 -fsyntax-only -verify -Wunneeded-member-function -Wno-unused-template %s
namespace{classA{voidg(){}// expected-warning {{member function 'g' is not needed and will not be emitted}}
template<typename T>voidgt(T){}template<>voidgt<int>(int){}// expected-warning {{member function 'gt<int>' is not needed and will not be emitted}}
template<>voidgt(float){}// expected-warning {{member function 'gt<float>' is not needed and will not be emitted}}
template<typename T>voidfoo(){g();gt(0);gt(0.0f);gt(0.0);}};templatevoidA::gt(double);// no-warning
}