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:
Marshall Clow 2013-03-18 23:39:36 +00:00
parent 53e2763966
commit c19fe86743

View File

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