[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CXX / expr / p8.cpp
blob471d1c5a30206a33a984965559c46e4d5fea5c50
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
4 int a0;
5 const volatile int a1 = 2;
6 int a2[16];
7 int a3();
9 void f0(int);
10 void f1(int *);
11 void f2(int (*)());
13 int main()
15 f0(a0);
16 f0(a1);
17 f1(a2);
18 f2(a3);