namespace N {
  template <typename T>
  static void f ();

  struct S {
    friend void N::f<int> ();
    static void f (int);
  };
}


syntax highlighted by Code2HTML, v. 0.9.1