blob: e693a357c22f348fb4182bf85b4e861bbda1ecc7 [file] [log] [blame]
// PR c++/80891 part 3
// We were failing to mark OVERLOADS held in template definitions as
// immutable in non-call contexts.
namespace std {
int endl();
}
using std::endl;
template <class RealType> void test_spots(RealType)
{
using namespace std;
RealType a;
a << endl;
}
template <typename T>
void operator<< (T, int (&)());
struct Q {};
void test_maintest_method()
{
Q q;
test_spots(q);
}