Rafael Espindola | 485458a | 2012-12-26 00:13:29 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify -Wall %s |
2 | |||||
3 | namespace test1 { | ||||
4 | static void f() {} // expected-warning {{is not needed and will not be emitted}} | ||||
5 | static void f(); | ||||
6 | template <typename T> | ||||
7 | void foo() { | ||||
8 | f(); | ||||
9 | } | ||||
10 | } | ||||
11 | |||||
12 | namespace test2 { | ||||
13 | static void f() {} | ||||
14 | static void f(); | ||||
15 | static void g() { f(); } | ||||
16 | void h() { g(); } | ||||
17 | } |