[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Sema / cxx-as-c.c
bloba5d1a4944c95630727adc8e69d079e900e976200
1 // RUN: %clang_cc1 %s -verify
3 // PR36157
4 struct Foo {
5 Foo(int n) : n_(n) {} // expected-error 1+{{}}
6 private:
7 int n;
8 };
9 int main() { Foo f; } // expected-error 1+{{}}