[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / PCH / pr27445.cpp
blobde1ce8455fde4a483bcef9b0dfe3e543eb8a820e
1 // RUN: %clang_cc1 -triple x86_64-windows-msvc -fms-extensions -x c++ %S/Inputs/pr27445.h -emit-pch -o %t.pch
2 // RUN: %clang_cc1 -triple x86_64-windows-msvc -fms-extensions %s -include-pch %t.pch -emit-llvm -o - | FileCheck %s
4 class A;
5 void fn1(A &) {}
7 class __declspec(dllexport) A {
8 int operator=(A) { return field_; }
9 void (*on_arena_allocation_)(Info);
10 int field_;
13 // CHECK: %class.A = type { ptr, i32 }