Home | History | Annotate | Download | only in Sema
      1 // RUN: %clang_cc1 -isystem %S/Inputs -fsyntax-only -verify %s
      2 #include <unused-expr-system-header.h>
      3 void f(int i1, int i2) {
      4   POSSIBLY_BAD_MACRO(5);
      5   STATEMENT_EXPR_MACRO(5);
      6   COMMA_MACRO_1(i1 == i2, f(i1, i2)); // expected-warning {{expression result unused}}
      7   COMMA_MACRO_2(i1 == i2, f(i1, i2));
      8   COMMA_MACRO_3(i1 == i2, f(i1, i2)); // expected-warning {{expression result unused}}
      9   COMMA_MACRO_4(i1 == i2, f(i1, i2));
     10 }
     11