Rebase.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.mike / p9068.C
bloba33f60f58e4f17f4b86b6ae651b41c58cce04b4f
1 // { dg-do assemble  }
2 // prms-id: 9068
4 struct ostream {
5   void operator<< (int);        // { dg-message "operator|no known conversion" } fn ref in err msg
6 };
8 class C {
9 public:
10   static int& i ();
11   static int& i (int signatureDummy);
14 void foo (ostream& lhs, const C& rhs)
16   lhs << rhs.i;         // { dg-error "match" } no such i for any opr << ()
19 int& C::i () {
20   static int _i = 4711;
21   return _i;