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;
}