aboutsummaryrefslogtreecommitdiff
path: root/test/CXX/class/class.friend/p6.cpp
blob: 2e8153c6c0471b8d8ed941998848902c90a7cc15 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: clang-cc -fsyntax-only -verify %s

class A {
  friend static class B; // expected-error {{'static' is invalid in friend declarations}}
  friend extern class C; // expected-error {{'extern' is invalid in friend declarations}}
  friend auto class D; // expected-error {{'auto' is invalid in friend declarations}}
  friend register class E; // expected-error {{'register' is invalid in friend declarations}}
  friend mutable class F; // expected-error {{'mutable' is invalid in friend declarations}}
  friend typedef class G; // expected-error {{'typedef' is invalid in friend declarations}}
};