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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.bugs/] [900404_02.C] - Blame information for rev 149

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do assemble  }
2
// g++ 1.37.1 bug 900404_02
3
 
4
// g++ fails to treat multicharacter literals as type "int" as required by
5
// section 2.5.2 of the C++ Reference Manual.
6
 
7
// The result is that the following program will exit with a nonzero
8
// exit status.
9
 
10
// keywords: character literals, multi-character literals, int type
11
 
12
int exit_status = 0;
13
 
14
void function0 (int i)          // function that should be called
15
{
16
  i = i;
17
}
18
 
19
void function0 (char c)         // function that is actually called
20
{
21
  c = c;
22
  exit_status++;
23
}
24
 
25
int main () { function0 ('abcd'); return exit_status; }         // { dg-warning "" }

powered by: WebSVN 2.1.0

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