• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 -isystem %S/Inputs -fsyntax-only -verify %s
2 #include <unused-expr-system-header.h>
f(int i1,int i2)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 {{comparison result unused}} \
7                                       // expected-note {{equality comparison}}
8   COMMA_MACRO_2(i1 == i2, f(i1, i2));
9   COMMA_MACRO_3(i1 == i2, f(i1, i2)); // expected-warning {{comparison result unused}} \
10                                       // expected-note {{equality comparison}}
11   COMMA_MACRO_4(i1 == i2, f(i1, i2));
12 }
13