1 // RUN: %clang_cc1 -fsyntax-only -verify %s
10 friend void ::f1() { } // expected-error{{friend function definition cannot be qualified with '::'}}
11 friend void X::f2() { } // expected-error{{friend function definition cannot be qualified with 'X::'}}
14 template <typename T
> struct Z
{
15 friend void T::f() {} // expected-error{{friend function definition cannot be qualified with 'T::'}}
22 friend void f() { } // expected-error{{friend function cannot be defined in a local class}}