2 // { dg-do run { target c++14_down } }
3 // { dg-do compile { target c++17 } }
4 // make sure that a typedef for a bool will have the
5 // the same results as a bool itself.
7 extern "C" void abort();
8 typedef volatile bool my_bool;
14 b++; // { dg-warning "deprecated" "" { target { ! c++17 } } }
15 // { dg-error "forbidden" "" { target c++17 } .-1 }
16 b++; // { dg-warning "deprecated" "" { target { ! c++17 } } }
17 // { dg-error "forbidden" "" { target c++17 } .-1 }