[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Parser / gh30908-scope-balance-on-invalid-var-direct-init-2.cpp
blob02200ce4f34a7516ae98189f852f63ae7f1c314e
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 #include <non-exist-header> // expected-error {{file not found}}
5 class S {};
7 template <typename T>
8 class E {
9 public:
10 E(S* scope) {}
11 S &getS();
14 class Z {
15 private:
16 static E<Z> e;
17 static S& s();
20 E<Z> Z::e(&__UNKNOWN_ID__);
22 S& Z::s() { return Z::e.getS(); }