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