Debian Codegraph @

clang/test/Parser/gh64836.cpp

raw
1 // RUN: %clang_cc1 -fsyntax-only -verify -xobjective-c++-header %s
2
3 template <typename, typename>
4 class C {};
5
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}}
12 };