//! This is a namespace.
namespace MyNamespace {

//! This is a friend function (will be matched).
void foo1_friend();

//! This is another friend function (won't be matched).
void foo2_friend();

}


namespace MyNamespace {

  //! This is A class.
  class A {
    friend void foo1_friend();
  };

}


//! This is Another class, inserted in the namespace
//! by using an alternative, legal syntax.
class MyNamespace::Another {
  // Here the function foo2_friend() _has_ to be qualified
  // with the namespace.
  friend void MyNamespace::foo2_friend();
};


