// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
// Classes.
namespaceClass{namespaceNS{classC{};// expected-note {{candidate}}
}usingnamespace NS;classC:C{};// expected-error {{reference to 'C' is ambiguous}} \
expected-note {{candidate}}
}// Enumerations.
enumE{
EPtrSize =sizeof((E*)0)// ok, E is already declared
};// Alias declarations. clang implements the proposed resolution to N1044.
namespaceAlias{namespaceNS{classC;}usingnamespace NS;using C = C;// ok, C = B::C
using C = NS::C;// ok, same type
}