This test failed because clang compiled the call to memset() into a
single sth instruction, instead of a call. Fix it by using write() instead
of memset().
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Would it work if you change memset to something that is unlikely to be optimized, like write(1, p, 2) ?
Comment Actions
Yes, that works for me. But it'll write some nasty characters to stdout if the test fails.