ms-class-specialization-duplicate.cpp 356 B

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