[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / PCH / cxx-ms-function-specialization-class-scope.cpp
blobaf1f5ac39b26072bd3db98b9d569c0d29487c45e
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
5 // RUN: %clang_cc1 -fms-extensions -triple i386-unknown-unknown -x c++-header -emit-pch -fpch-instantiate-templates -o %t %S/cxx-ms-function-specialization-class-scope.h
6 // RUN: %clang_cc1 -fms-extensions -triple i386-unknown-unknown -include-pch %t -fsyntax-only -verify %s
7 // expected-no-diagnostics
10 void test2()
12 B<char> b(3);
13 char* ptr;
14 b.f(ptr);
15 b.f<int>(99);
16 b.f(100);