eugenis accepted this revision. eugenis added a comment. This revision is now accepted and ready to land. LGTM It appears that this code is not testable in clang. There is a compiler-rt test in https://reviews.llvm.org/D26355. https://reviews.llvm.org/D26354