// RUN: %clang_cc1 -fsyntax-only -Wunused-value -verify %s
intmain(void){int a;int b;
a ?: b;//expected-warning{{expression result unused}}
a ? a : b;//expected-warning{{expression result unused}}
a ?:++b;
a ? a :++b;++a ?: b;//expected-warning{{expression result unused}}
++a ? a : b;//expected-warning{{expression result unused}}
++a ?:++b;++a ? a :++b;return0;};