* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / pr80891-3.C
blobe693a357c22f348fb4182bf85b4e861bbda1ecc7
1 // PR c++/80891 part 3
2 // We were failing to mark OVERLOADS held in template definitions as
3 // immutable in non-call contexts.
5 namespace std {
6   int endl();
9 using std::endl;
11 template <class RealType> void test_spots(RealType)
13   using namespace std;
14   RealType a;
15   a << endl;
18 template <typename T>
19 void operator<< (T, int (&)());
21 struct Q {};
22 void test_maintest_method()
24   Q q;
25   test_spots(q);