xref: /llvm-project/clang/test/CXX/temp/temp.spec/temp.expl.spec/p9.cpp (revision c6e68daac0fa6e77a89f3ca72f266a528503dd1c)
18fbe78f6SDaniel Dunbar // RUN: %clang_cc1 -fsyntax-only -verify %s
2*c6e68daaSAndy Gibbs // expected-no-diagnostics
31fc79ddaSDouglas Gregor 
41fc79ddaSDouglas Gregor namespace N {
51fc79ddaSDouglas Gregor   template<class T> class X { /* ... */ };
61fc79ddaSDouglas Gregor   template<class T> class Y { /* ... */ };
71fc79ddaSDouglas Gregor   template<> class X<int> { /* ... */ };
81fc79ddaSDouglas Gregor   template<> class Y<double>;
91fc79ddaSDouglas Gregor 
101fc79ddaSDouglas Gregor   const unsigned NumElements = 17;
111fc79ddaSDouglas Gregor }
121fc79ddaSDouglas Gregor 
131fc79ddaSDouglas Gregor template<> class N::Y<double> {
141fc79ddaSDouglas Gregor   int array[NumElements];
151fc79ddaSDouglas Gregor };
16