repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
pr78060.C
blob
d6cc7b312e5c100156cf7a83c89b97313ebbd01f
1
// PR tree-optimization/78060
2
// { dg-do compile }
3
// { dg-options "-O3 -fsplit-loops" }
4
class A {
5
public:
6
template <typename T2> int &operator[](T2);
7
};
8
int a;
9
A b;
10
void fn1() {
11
long c;
12
for (int l; l < c; ++l)
13
b[l] = l < 2 ?: a;
14
}