jketema added a comment. I was wondering what a suitable place for a test was. Thanks for the pointer, I'll update. Once this is in I should have a first version of a patch for the OCaml bindings exposing the diagnostic handler. http://reviews.llvm.org/D18820