1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
4 // C++0x [basic.lookup.unqual]p14:
5 // If a variable member of a namespace is defined outside of the
6 // scope of its namespace then any name used in the definition of
7 // the variable member (after the declarator-id) is looked up as if
8 // the definition of the variable member occurred in its namespace.
23 inline X
operator-(int, X
);
28 typedef Y
<float> YFloat
;
31 YFloat
operator-(YFloat
, YFloat
);
33 using namespace yfloat
;
41 void foo(YFloat a
, YFloat b
);
46 void Other::foo(YFloat a
, YFloat b
) {
55 using namespace Other
;
68 void M2::MInner::Bar::bar() {