Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wmultistatement-macros-1.C
blob: afaef9ad42940eb5f8bdf0c446ebc59b78d1dda4 [
file
] [
log
] [
blame
]
// PR bootstrap/81216
// { dg-options "-Wmultistatement-macros" }
// { dg-do compile }
template
<
typename
A
,
typename
B
>
static
bool
equal
(
A a
,
A b
,
B c
)
{
for
(;
a
!=
b
;
++
a
,
(
void
)++
c
)
if
(!(*
a
==
*
c
))
return
false
;
return
true
;
}