Add missing test for -Wunneeded-member-functions.

llvm-svn: 184371
This commit is contained in:
Eli Friedman 2013-06-19 22:01:25 +00:00
parent 8c3880b907
commit 705a7b4cb7
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
// RUN: %clang_cc1 -fsyntax-only -verify -Wunneeded-member-function %s
namespace {
class A {
void g() {} // expected-warning {{is not needed and will not be emitted}}
template <typename T>
void foo() {
g();
}
};
}