2 // { dg-do compile { target c++11 } }
6 #define SA(x) static_assert ((x), #x)
11 int operator *() const;
12 int operator ++() const;
13 int operator [](int) const;
16 int operator-- (const A&);
23 auto &&g2 = x.operator*();
28 SA ((std::is_same<int &&, decltype (error1)>::value));
29 SA ((std::is_same<int &&, decltype (error2)>::value));
30 SA ((std::is_same<int &&, decltype (error3)>::value));
31 SA ((std::is_same<int &&, decltype (error4)>::value));