1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
/* PR c/44677 */
/* { dg-do compile } */
/* { dg-options "-O2 -Wunused -Wextra" } */
void baz (int);
void
foo (int a, /* { dg-warning "parameter 'a' set but not used" } */
int b, /* { dg-warning "parameter 'b' set but not used" } */
int c, /* { dg-warning "parameter 'c' set but not used" } */
int d, /* { dg-warning "parameter 'd' set but not used" } */
int e, /* { dg-warning "parameter 'e' set but not used" } */
int f, /* { dg-warning "parameter 'f' set but not used" } */
int g, /* { dg-warning "parameter 'g' set but not used" } */
int h, /* { dg-warning "parameter 'h' set but not used" } */
int i, /* { dg-warning "parameter 'i' set but not used" } */
int j, /* { dg-warning "parameter 'j' set but not used" } */
int k, /* { dg-warning "parameter 'k' set but not used" } */
int l, /* { dg-warning "parameter 'l' set but not used" } */
int m) /* { dg-warning "parameter 'm' set but not used" } */
{
a = 1;
++b;
c++;
--d;
e--;
f += 2;
g |= 2;
h -= 2;
i &= 2;
j ^= 2;
k *= 2;
l %= 2;
for (int n = 4; n < 10; n++, m++)
baz (n);
}
int
bar (int a, int b, int c, int d, int e, int f, int g, int h, int i, int j,
int k, int l, int m, int n)
{
b = ++a;
d = --c;
f = e--;
h = g++;
j = i += 42;
l = k *= 4;
n = m |= 2;
return b + d + f + h + j + l + n;
}
|