Add missing test for -Wunneeded-member-functions.
llvm-svn: 184371
This commit is contained in:
parent
8c3880b907
commit
705a7b4cb7
|
@ -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();
|
||||
}
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue