blob: 437a428664faa0932d8ff6ad123db395fdad5c0e [file] [log] [blame]
// RUN: %clang_cc1 -fsyntax-only -verify -Wall %s
namespace test1 {
static void f() {} // expected-warning {{is not needed and will not be emitted}}
static void f();
template <typename T>
void foo() {
f();
}
}
namespace test2 {
static void f() {}
static void f();
static void g() { f(); }
void h() { g(); }
}