blob: 37e101e221ea3cc30a7ab5467042e01a7b3d92dc [file] [log] [blame]
Anders Carlssonbc13ab22009-06-26 03:54:13 +00001// RUN: clang-cc -fsyntax-only -verify %s
2
3extern "C" { void f(bool); }
4
5namespace std {
6 using ::f;
7 inline void f() { return f(true); }
8}
Douglas Gregor2531c2d2009-09-28 00:47:05 +00009
10namespace M {
11 void f(float);
12}
13
14namespace N {
15 using M::f;
16 void f(int) { } // expected-note{{previous}}
17
18 void f(int) { } // expected-error{{redefinition}}
19}