Improve fail_compilation tests by using `TEST_OUTPUT`
fix Issue 11142 - Wrong error message "no size yet for forward reference" for opaque struct