blob: 3526df1ddc926bc4f28ab5f4275e105575dfbf82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// PR opt/13681
// Here we have an out-of-range array index. We should not abort
// trying to resolve the indirection back to an object.
struct X {
double values[1];
double & foo (const unsigned int index) { return values[index]; }
};
void foo() {
double d;
X h1;
h1.foo(1) = d;
}
|