Fix bug in test; found by AddressSanitizer
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@177355 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
53e2763966
commit
c19fe86743
@ -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…
x
Reference in New Issue
Block a user