brintos

brintos / llvm-project-archived public Read only

0
0
Text · 466 B · 12b7260 Raw
13 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify -xobjective-c++-header %s2 3template <typename, typename>4class C {};5 6class 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};13