[m-rev.] diff: avoid failure of tests/invalid/foreign_decl_line_number with clang

Julien Fischer jfischer at opturion.com
Fri Oct 2 12:45:40 AEST 2015


Avoid failure of tests/invalid/foreign_decl_line_number with clang.

The above test case is intended to check that the correct line numbers are
reported for the contents of foreign language pragmas.  The way this is done
(i.e. assuming that context information will be printed out along with the
contents of an #error directive) is GCC specific and clang doesn't implement
that behaviour.

tests/invalid/foreign_decl_line_number.err_exp5:
     Add the expected error output for clang.

Julien.

diff --git a/tests/invalid/foreign_decl_line_number.err_exp5 b/tests/invalid/foreign_decl_line_number.err_exp5
new file mode 100644
index 0000000..a1a92e5
--- /dev/null
+++ b/tests/invalid/foreign_decl_line_number.err_exp5
@@ -0,0 +1,3 @@
+#error Error in foreign code
+#error Error in foreign decl
+#error Error in foreign proc




More information about the reviews mailing list