bolt/deps/llvm-18.1.8/clang/test/SemaTemplate/ms-class-specialization-duplicate.cpp

10 lines
356 B
C++
Raw Normal View History

2025-02-14 19:21:04 +01:00
// RUN: %clang_cc1 -fms-compatibility -fdelayed-template-parsing -fsyntax-only -verify %s
template <typename T>
class A {
};
typedef int TInt;
template class A<int>; // expected-note {{previous explicit instantiation is here}}
template class A<TInt>; // expected-warning {{duplicate explicit instantiation of 'A<int>' ignored as a Microsoft extension}}