Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
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
;
}