forked from OSchip/llvm-project
Fix bug in test; found by AddressSanitizer
llvm-svn: 177355
This commit is contained in:
parent
9cf21ae068
commit
1c00ce5070
|
@ -25,7 +25,7 @@ int main()
|
|||
double b[] = {10, 14, 16, 17};
|
||||
double p[] = {25, 62.5, 12.5, 10};
|
||||
const size_t Np = sizeof(p) / sizeof(p[0]);
|
||||
P pa(b, b+Np+1, p);
|
||||
P pa(b, b+Np, p);
|
||||
D d(pa);
|
||||
assert(d.param() == pa);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue