@@ -3,4 +3,8 @@ static void foo(enum bar baz);
/*
* check-name: enum not in scope
* check-known-to-fail
+ *
+ * check-error-start
+badtype1.c:1:22: warning: bad scope for 'enum bar'
+ * check-error-end
*/
@@ -16,4 +16,10 @@ h (void)
/*
* check-name: struct not in scope
* check-known-to-fail
+ *
+ * check-error-start
+struct-ns2.c:2:11: warning: bad scope for 'struct Bar'
+struct-ns2.c:12:14: error: incomplete type/unknown size for 'y'
+struct-ns2.c:13:5: error: using member 'i' in incomplete 'struct Bar'
+ * check-error-end
*/
These tests must fail because some errors which should be detected are not. But the test suite lack to see that because those tests don't have the check-error-start/end section. Add such a section (with madeup error message) so that the testsuite now properly see and report the failure. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> --- validation/badtype1.c | 4 ++++ validation/struct-ns2.c | 6 ++++++ 2 files changed, 10 insertions(+)