Clang Project

clang_source_code/test/SemaTemplate/ms-class-specialization-duplicate.cpp
1// RUN: %clang_cc1 -fms-compatibility -fdelayed-template-parsing -fsyntax-only -verify %s
2
3template <typename T>
4class A {
5};
6typedef int TInt;
7
8template class A<int>;  // expected-note {{previous explicit instantiation is here}}
9template class A<TInt>; // expected-warning {{duplicate explicit instantiation of 'A<int>' ignored as a Microsoft extension}}
10