(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
template/
friend29.C
// PR c++/15701

template<template<int> class T> struct A : T<0>
{
    void foo();
    template<template<int> class U> friend void A<U>::foo();
};

template<int> struct B {};

A<B> a;