[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Tooling / Inputs / clang-diff-basic-src.cpp
blob8f15232916d3d23e7895eb24ebf48ac45b36e3ae
1 namespace src {
3 void foo() {
4 int x = 321;
7 void main() { foo(); };
9 const char *a = "foo";
11 typedef unsigned int nat;
13 int p = 1 * 2 * 3 * 4;
14 int squared = p * p;
16 class X {
17 const char *foo(int i) {
18 if (i == 0)
19 return "foo";
20 return 0;
23 public:
24 X(){};
26 int id(int i) { return i; }
30 void m() { int x = 0 + 0 + 0; }
31 int um = 1 * 2 + 3;
33 void f1() {{ (void) __func__;;; }}