llvm-project/clang/test/SemaTemplate/friend.cpp

15 lines
184 B
C++

// 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>;
};