1 // RUN: %clang_cc1 -fsyntax-only -Wunused-value -verify %s main()2int main() { 3 int a; 4 int b; 5 a ? : b; //expected-warning{{expression result unused}} 6 a ? a : b; //expected-warning{{expression result unused}} 7 a ? : ++b; 8 a ? a : ++b; 9 ++a ? : b; //expected-warning{{expression result unused}} 10 ++a ? a : b; //expected-warning{{expression result unused}} 11 ++a ? : ++b; 12 ++a ? a : ++b; 13 return 0; 14 }; 15 16