cxx-ms-function-specialization-class-scope.cpp 405 B

123456789101112131415
  1. // REQUIRES: x86-registered-target
  2. // RUN: %clang_cc1 -fms-extensions -triple i386-unknown-unknown -x c++-header -emit-pch -o %t %S/cxx-ms-function-specialization-class-scope.h
  3. // RUN: %clang_cc1 -fms-extensions -triple i386-unknown-unknown -include-pch %t -fsyntax-only -verify %s
  4. // expected-no-diagnostics
  5. void test2()
  6. {
  7. B<char> b(3);
  8. char* ptr;
  9. b.f(ptr);
  10. b.f<int>(99);
  11. b.f(100);
  12. }