1 // RUN: clang-cc -fsyntax-only -verify %s
3 // Bool literals can be enum values.
9 // bool cannot be decremented, and gives a warning on increment
12 ++b
; // expected-warning {{incrementing expression of type bool is deprecated}}
13 b
++; // expected-warning {{incrementing expression of type bool is deprecated}}
14 --b
; // expected-error {{cannot decrement expression of type bool}}
15 b
--; // expected-error {{cannot decrement expression of type bool}}
17 bool *b1
= (int *)0; // expected-error{{expected 'bool *'}}