freebsd-dev/test/SemaCXX/using-decl-1.cpp
2009-10-14 18:03:49 +00:00

20 lines
309 B
C++

// RUN: clang-cc -fsyntax-only -verify %s
extern "C" { void f(bool); }
namespace std {
using ::f;
inline void f() { return f(true); }
}
namespace M {
void f(float);
}
namespace N {
using M::f;
void f(int) { } // expected-note{{previous}}
void f(int) { } // expected-error{{redefinition}}
}