[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Parser / gh64836.cpp
blob12b726060cb3fd996f4fdbceb23a3fe868a1f9b9
1 // RUN: %clang_cc1 -fsyntax-only -verify -xobjective-c++-header %s
3 template <typename, typename>
4 class C {};
6 class B {
7 p // expected-error {{unknown type name 'p'}}
8 private: // expected-error {{'private' is a keyword in Objective-C++}}
9 void f() {} // expected-error {{expected '(' for function-style cast or type construction}}
10 C<int, decltype(f)> c; // expected-error {{use of undeclared identifier 'f'}}
11 // expected-error@-1 {{expected member name}}