tests: fix the Diagnostic tests for libclang 3.1

clang 3.1 and earlier produces a different error for `enum test {}`
than 3.2. This changes the error to one that is consistent between
clang releases.