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

Subversion Repositories openrisc

[/] [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] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do run  }
2
// g++ 1.36.1 bug 900220_02
3
 
4
// g++ treats plain `char' and `unsigned char' as different types, however
5
// it fails to treat `signed char' as being a different type from plain
6
// `char' as called for by both the ANSI C standard and the C++ reference
7
// manual.
8
 
9
// keywords: plain char type, signed char type, unsigned char type, overloading
10
 
11
void overloaded (char) {
12
}
13
 
14
void overloaded (signed char) {         // { dg-bogus "" }
15
}
16
 
17
void overloaded (unsigned char) {
18
}
19
 
20
void global_function ()
21
{
22
  char c = 0;
23
  signed char sc = 0;
24
  unsigned char uc = 0;
25
 
26
  overloaded (c);
27
  overloaded (sc);
28
  overloaded (uc);
29
}
30
 
31
int main () { return 0; }

powered by: WebSVN 2.1.0

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