Skip the UTF-8 BOM of including files.

For avoiding illegal token error when parsing include files which have the UTF-8 BOM.

Closes #75.
This commit is contained in:
William S Fulton 2013-08-29 19:19:52 +01:00
commit f55ff50dd5
4 changed files with 25 additions and 2 deletions

View file

@ -0,0 +1,9 @@
%module bom_utf8
/* Test for UTF8 BOM at start of file */
%inline %{
struct NotALotHere {
int n;
};
%}

View file

@ -552,7 +552,8 @@ C_TEST_CASES += \
typedef_struct \
typemap_subst \
union_parameter \
unions
unions \
utf8_bom
# Multi-module C++ test cases . (Can be run individually using make testcase.multicpptest)