1 // RUN: %clang_cc1 -fsyntax-only -verify -Wunneeded-member-function %s 2 3 namespace { 4 class A { g()5 void g() {} // expected-warning {{is not needed and will not be emitted}} 6 template <typename T> foo()7 void foo() { 8 g(); 9 } 10 }; 11 } 12