1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 template<typename T> struct A {
27 template<typename T> void f1(T, T);
30 friend class f; // expected-error{{'friend' used outside of class}}
31 friend class f1; // expected-error{{'friend' used outside of class}}
35 namespace friend_redecl_inline {
36 // We had a bug where instantiating the foo friend declaration would check the
37 // defined-ness of the most recent decl while checking if the canonical decl was
44 friend inline void bar();