Commit 5b11971a by Christophe Lyon Committed by Christophe Lyon

[testsuite] gcc.dg/memcmp-1.c: Fix testcase for newlib.

2017-01-31  Christophe Lyon  <christophe.lyon@linaro.org>

	* gcc.dg/memcmp-1.c (static void test_driver_memcmp): Call
	rand() instead of random().

From-SVN: r245061
parent 4997a71d
2017-01-31 Christophe Lyon <christophe.lyon@linaro.org>
* gcc.dg/memcmp-1.c (static void test_driver_memcmp): Call
rand() instead of random().
2017-01-30 Aldy Hernandez <aldyh@redhat.com>
PR tree-optimization/71691
......
......@@ -28,12 +28,12 @@ static void test_driver_memcmp (void (test_memcmp)(const char *, const char *, i
for(l=0;l<sz;l++) {
for(i=0;i<NRAND/sz;i++) {
for(j=0;j<l;j++) {
buf1[j] = random() & 0xff;
buf1[j] = rand() & 0xff;
buf2[j] = buf1[j];
}
for(j=l;j<sz;j++) {
buf1[j] = random() & 0xff;
buf2[j] = random() & 0xff;
buf1[j] = rand() & 0xff;
buf2[j] = rand() & 0xff;
}
}
e = lib_memcmp(buf1,buf2,sz);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment