summaryrefslogtreecommitdiffstats
path: root/test/Sema/warn-unused-parameters.c
blob: c6458cf9712bcb687ced717e7b8d1c315fb18798 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %clang -fblocks -fsyntax-only -Wunused-parameter %s -Xclang -verify

int f0(int x,
       int y, // expected-warning{{unused}}
       int z __attribute__((unused))) {
  return x;
}

void f1() {
  (void)^(int x,
          int y, // expected-warning{{unused}}
          int z __attribute__((unused))) { return x; };
}
OpenPOWER on IntegriCloud