Sign in
gnu
/
gcc
/
a8404c07e7fca388c02c39077865f7d5fa928430
/
.
/
gcc
/
testsuite
/
g++.dg
/
pr78060.C
blob: d6cc7b312e5c100156cf7a83c89b97313ebbd01f [
file
] [
log
] [
blame
]
// PR tree-optimization/78060
// { dg-do compile }
// { dg-options "-O3 -fsplit-loops" }
class
A
{
public
:
template
<
typename
T2
>
int
&
operator
[](
T2
);
};
int
a
;
A b
;
void
fn1
()
{
long
c
;
for
(
int
l
;
l
<
c
;
++
l
)
b
[
l
]
=
l
<
2
?:
a
;
}