#pike doesn't work for hash function
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2458
Reported by Martin Nilsson, IDA nilsson@pike.ida.liu.se
The following program returns "Compatibility hash not used".
int main() {
int h1 = hash("abcdef");
int h2 = hash_7_0("abcdef");
#pike 7.0
int h3 = hash("abcdef");
if(h1==h3) {
write("Compatibility hash not used.\n");
return 1;
}
if(h2==h3) {
write("Compatibility hash used.\n");
return 0;
}
write("Screwup\n");
return 1;
}