[clang] Add tracking source deduction guide for the explicitly-written
[llvm-project.git] / clang / test / CXX / basic / basic.scope / basic.scope.pdecl / p3.cpp
blob407a5f744e370267e9a23f8ba49eb6d68708247c
1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
3 // Classes.
4 namespace Class {
5 namespace NS {
6 class C {}; // expected-note {{candidate}}
8 using namespace NS;
9 class C : C {}; // expected-error {{reference to 'C' is ambiguous}} \
10 expected-note {{candidate}}
13 // Enumerations.
14 enum E {
15 EPtrSize = sizeof((E*)0) // ok, E is already declared
18 // Alias declarations. clang implements the proposed resolution to N1044.
19 namespace Alias {
20 namespace NS {
21 class C;
23 using namespace NS;
24 using C = C; // ok, C = B::C
25 using C = NS::C; // ok, same type