1 // RUN: %clang_cc1 -std=c++17 -verify -emit-llvm-only %s
3 template <class T
> void bar(const T
&t
) { foo(t
); }
8 friend void foo(const HasFriend
<T
> &m
) noexcept(false);
12 void foo(const HasFriend
<T
> &m
) noexcept(false) {}
20 template<typename T
> void droid();
22 template<typename T
> friend void ::droid();
23 template<int N
> friend void ::droid(); // expected-error {{does not match}}
24 // FIXME: We should produce a note for the above candidate explaining why
25 // it's not the droid we're looking for.