Add some more preprocessor tests

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12203 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2010-09-06 18:10:43 +00:00
commit b0609c3be2
5 changed files with 51 additions and 1 deletions

View file

@ -24,9 +24,12 @@ c_missing_semi
c_redefine
c_varargs
c_varargs_neg
nomodule
nomodule
pp_badeval
pp_deprecated
pp_defined
pp_macro_defined_unterminated
pp_illegal_argument
pp_macro_args
pp_macro_badchar
pp_macro_nargs
@ -39,9 +42,11 @@ pp_missing_enddef
pp_missing_endif
pp_missing_file
pp_missing_rblock
pp_pragma
pp_unterm_char
pp_unterm_comment
pp_unterm_string
pp_variable_args
swig_apply_nargs
swig_identifier
swig_insert_bad

View file

@ -0,0 +1,9 @@
%module xxx
%extern ext;
#warning Print this warning
#error This is an error

View file

@ -0,0 +1,20 @@
%module xxx
%define MISSING_DOT1(a,
b,
..)
xxx
%enddef
%define MISSING_DOT2(..)
xxx
%enddef
%define BAD_ARGNAME(
a,
b{c
)
xxx
%enddef

View file

@ -0,0 +1,6 @@
%module xxx
#pragma SWIG rubbish()

View file

@ -0,0 +1,10 @@
%module xxx
%define VARARGS_WRONG(a,
x,
...,
b)
xxx
%enddef