llvm-for-llvmta/tools/clang/test/CXX/temp/temp.spec/temp.expl.spec/p9.cpp

16 lines
350 B
C++
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -fsyntax-only -verify %s
// expected-no-diagnostics
namespace N {
template<class T> class X { /* ... */ };
template<class T> class Y { /* ... */ };
template<> class X<int> { /* ... */ };
template<> class Y<double>;
const unsigned NumElements = 17;
}
template<> class N::Y<double> {
int array[NumElements];
};