[AArch64/arm] PR testsuite/85326 Avoid C++ tests when C++ compiler not present
[official-gcc.git] / gcc / testsuite / g++.dg / expr / bool2.C
blob39d93c0af9d920e5d5c7e1cd734b0255e295f215
1 // { dg-do compile }
2 // make sure that a typedef for a bool will have the
3 //  the same results as a bool itself.
6 typedef bool my_bool;
7 int main()
9   my_bool b = false;
10   b--; // { dg-error "" }
11   return 0;