OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.bugs/] [900220_02.C] - Diff between revs 305 and 338

Only display areas with differences | Details | Blame | View Log

Rev 305 Rev 338
// { dg-do run  }
// { dg-do run  }
// g++ 1.36.1 bug 900220_02
// g++ 1.36.1 bug 900220_02
// g++ treats plain `char' and `unsigned char' as different types, however
// g++ treats plain `char' and `unsigned char' as different types, however
// it fails to treat `signed char' as being a different type from plain
// it fails to treat `signed char' as being a different type from plain
// `char' as called for by both the ANSI C standard and the C++ reference
// `char' as called for by both the ANSI C standard and the C++ reference
// manual.
// manual.
// keywords: plain char type, signed char type, unsigned char type, overloading
// keywords: plain char type, signed char type, unsigned char type, overloading
void overloaded (char) {
void overloaded (char) {
}
}
void overloaded (signed char) {         // { dg-bogus "" }
void overloaded (signed char) {         // { dg-bogus "" }
}
}
void overloaded (unsigned char) {
void overloaded (unsigned char) {
}
}
void global_function ()
void global_function ()
{
{
  char c = 0;
  char c = 0;
  signed char sc = 0;
  signed char sc = 0;
  unsigned char uc = 0;
  unsigned char uc = 0;
  overloaded (c);
  overloaded (c);
  overloaded (sc);
  overloaded (sc);
  overloaded (uc);
  overloaded (uc);
}
}
int main () { return 0; }
int main () { return 0; }
 
 

powered by: WebSVN 2.1.0

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