[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / PCH / chain-pending-instantiations.cpp
blob6cd4f54f6ddd02b7aee81226261401ba8f838873
1 // RUN: %clang_cc1 %s -emit-llvm -triple i686-pc-linux -o - -chain-include %s -chain-include %s | FileCheck %s
2 // CHECK: define linkonce_odr noundef ptr @_ZN1AI1BE3getEv
3 #if !defined(PASS1)
4 #define PASS1
6 template <typename Derived>
7 struct A {
8 Derived* get() { return 0; }
9 };
11 struct B : A<B> {
14 #elif !defined(PASS2)
15 #define PASS2
17 struct C : B {
20 struct D : C {
21 void run() {
22 (void)get();
26 #else
28 int main() {
29 D d;
30 d.run();
33 #endif