[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / PCH / chain-conversion-lookup.cpp
blobdb9d8fc33eaf89c29d2809339ef12e646f8a323b
1 // RUN: %clang_cc1 %s -emit-llvm -o - -chain-include %s -chain-include %s
3 #if !defined(PASS1)
4 #define PASS1
5 struct X {
6 operator int*();
7 };
9 struct Z {
10 operator int*();
12 #elif !defined(PASS2)
13 #define PASS2
14 struct Y {
15 operator int *();
17 #else
18 int main() {
19 X x;
20 int *ip = x.operator int*();
21 Y y;
22 int *ip2 = y.operator int*();
23 Z z;
24 int *ip3 = z.operator int*();
26 #endif