Debian Codegraph @

clang/test/CXX/over/over.built/p5.cpp

raw
1 // RUN: %clang_cc1 -std=c++11 -verify %s -Wno-tautological-compare
2
3 void f(int i, bool b) {
4 (void)--i;
5 (void)i--;
6
7 (void)--b; // expected-error {{cannot decrement expression of type bool}}
8 (void)b--; // expected-error {{cannot decrement expression of type bool}}
9 }
10