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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [expr/] [bool3.C] - Blame information for rev 301

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 volatile 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.