asan fixes for gcc and gnu runtime

This commit is contained in:
rfm 2024-11-30 19:06:40 +00:00
parent 018111efbb
commit 9cdb4f98ba
5 changed files with 13 additions and 6 deletions

View file

@ -8,6 +8,7 @@ copyright 2004 Alexander Malmberg <alexander@malmberg.org>
int main(int argc, char **argv)
{
START_SET("zero hash")
NSString *s = @"!)9\" ;";
unsigned int h;
@ -34,7 +35,7 @@ int main(int argc, char **argv)
s = [NSString stringWithString: s];
h = [s hash];
PASS(h != 0, "[NSString hash] does not return 0");
END_SET("zero hash")
return 0;
}