Anders Carlsson | bc13ab2 | 2009-06-26 03:54:13 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -fsyntax-only -verify %s |
2 | |||||
3 | extern "C" { void f(bool); } | ||||
4 | |||||
5 | namespace std { | ||||
6 | using ::f; | ||||
7 | inline void f() { return f(true); } | ||||
8 | } | ||||
Douglas Gregor | 2531c2d | 2009-09-28 00:47:05 +0000 | [diff] [blame^] | 9 | |
10 | namespace M { | ||||
11 | void f(float); | ||||
12 | } | ||||
13 | |||||
14 | namespace N { | ||||
15 | using M::f; | ||||
16 | void f(int) { } // expected-note{{previous}} | ||||
17 | |||||
18 | void f(int) { } // expected-error{{redefinition}} | ||||
19 | } |