Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
delayedfold
/
df-warn-signedunsigned2.C
blob: fa91a4f34647d64af718f46605ec048da1deef96 [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-Wall -Werror" } */
extern
int
fl
;
extern
int
arr
[];
#define
MAK
(
fl
<
0
?
1
:
(
fl
?
2
:
0
))
int
foo
(
int
sz
)
{
unsigned
i
;
int
r
=
0
;
for
(
i
=
0
;
i
<
MAK
;
i
++)
r
+=
arr
[
i
];
return
r
;
}