summaryrefslogtreecommitdiffstats
path: root/test/SemaTemplate/friend.cpp
blob: 61ef1865da5d5d49344eafa40df8d2807803bb30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: %clang_cc1 -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>;
};
OpenPOWER on IntegriCloud