OSDN Git Service

2007-08-17 Andrew Pinski <andrew_pinski@playstation.sony.com>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / expr / bool1.C
1 // { 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