(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
lookup/
pr80891-1.C
// PR c++/80891 part 1
// std::endl is found via two paths and most_specialized_instantiation
// gets confused.

namespace std {
  struct A {
    void operator<<(A(A));
  };
  template <typename _CharT, typename _Traits> _CharT endl(_Traits);
  A a;
}

using std::endl;

void chi_squared_sample_sized()
{
  using namespace std;
  a << endl;
}