OSDN Git Service

gcc/cp/
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / expr / bool3.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 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