i386: Allow all register_operand SUBREGs in x86_ternlog_idx.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / overload23.C
blobfe605f03799b83d4df9c6dd5651eb692a9b79fbf
1 // { dg-do assemble  }
2 // From: panisset@cae.ca (Jean-Francois Panisset)
3 // Date: Mon, 6 Jun 94 13:39:25 EDT
4 // Subject: Problem with operator overloading
7 class ostream {
8 public:
9   ostream& operator<<(double n);
10   ostream& operator<<(float n);
13 class X
15 public:
16   operator long() const;
17   operator double() const;
19 ostream& operator<< (ostream& os, const X& x);
22 int main()
24   X x;
25   ostream os;
26   os << x; // { dg-bogus "" } converting to float