[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / SemaCXX / PR9884.cpp
blobbb8bd6a56bff9b8c7b7c6330595990865c59fcf4
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
3 class Base {
4 protected:
5 Base(int val);
6 };
9 class Derived : public Base {
10 public:
11 Derived(int val);
15 Derived::Derived(int val)
16 : Base( val )