OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.brendan/] [overload5.C] - Blame information for rev 749

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do assemble  }
2
// GROUPS passed overloading
3
class Foo
4
{
5
public:
6
  int operator << (const signed char&);
7
  int operator << (const unsigned char&);
8
  int operator << (const short&);
9
  int operator << (const unsigned short&);
10
  int operator << (const long&);
11
  int operator << (const unsigned long&);
12
};
13
 
14
int main ()
15
{
16
  Foo fd;
17
 
18
  // We fixed convert_harshness_ansi so it considers the call to
19
  // <<(const signed char&) to be a trivial conversion.  It used
20
  // to always make it a standard conversion, which made it conflict
21
  // with <<(const unsigned char &), which is really a std conv.
22
  fd << (signed char) 0;
23
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.