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++.dg/] [expr/] [bool1.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// { dg-do run }
2
// PR C++/29295
3
// make sure that a typedef for a bool will have the
4
//  the same results as a bool itself.
5
 
6
extern "C" void abort();
7
typedef bool my_bool;
8
int main()
9
{
10
  my_bool b = false;
11
  int i;
12
 
13
  b++;
14
  b++;
15
  i = b;
16
  if (i != 1)
17
    abort ();
18
  return 0;
19
}
20
 
21
 

powered by: WebSVN 2.1.0

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