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.
21 // <rdar://problem/13317030>
24 inline X operator-(int, X);
29 typedef Y<float> YFloat;
32 YFloat operator-(YFloat, YFloat);
34 using namespace yfloat;
42 void foo(YFloat a, YFloat b);
47 void Other::foo(YFloat a, YFloat b) {
51 // <rdar://problem/13540899>
57 using namespace Other;
70 void M2::MInner::Bar::bar() {