aboutsummaryrefslogtreecommitdiff
path: root/test/SemaTemplate/friend.cpp
blob: 27299523862ec71040a4cbfb787f7b79c5a217ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: clang-cc -fsyntax-only -verify %s
template<typename T> struct A {
  struct B { };
  
  friend struct B;
};

void f() {
  A<int>::B b;
}

struct C0 {
  friend struct A<int>;
};