Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
;
}