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:
parent
04c3e6b7d3
commit
b0609c3be2
5 changed files with 51 additions and 1 deletions
|
|
@ -24,9 +24,12 @@ c_missing_semi
|
||||||
c_redefine
|
c_redefine
|
||||||
c_varargs
|
c_varargs
|
||||||
c_varargs_neg
|
c_varargs_neg
|
||||||
nomodule
|
nomodule
|
||||||
pp_badeval
|
pp_badeval
|
||||||
|
pp_deprecated
|
||||||
pp_defined
|
pp_defined
|
||||||
|
pp_macro_defined_unterminated
|
||||||
|
pp_illegal_argument
|
||||||
pp_macro_args
|
pp_macro_args
|
||||||
pp_macro_badchar
|
pp_macro_badchar
|
||||||
pp_macro_nargs
|
pp_macro_nargs
|
||||||
|
|
@ -39,9 +42,11 @@ pp_missing_enddef
|
||||||
pp_missing_endif
|
pp_missing_endif
|
||||||
pp_missing_file
|
pp_missing_file
|
||||||
pp_missing_rblock
|
pp_missing_rblock
|
||||||
|
pp_pragma
|
||||||
pp_unterm_char
|
pp_unterm_char
|
||||||
pp_unterm_comment
|
pp_unterm_comment
|
||||||
pp_unterm_string
|
pp_unterm_string
|
||||||
|
pp_variable_args
|
||||||
swig_apply_nargs
|
swig_apply_nargs
|
||||||
swig_identifier
|
swig_identifier
|
||||||
swig_insert_bad
|
swig_insert_bad
|
||||||
|
|
|
||||||
9
Examples/test-suite/errors/pp_deprecated.i
Normal file
9
Examples/test-suite/errors/pp_deprecated.i
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
%module xxx
|
||||||
|
|
||||||
|
|
||||||
|
%extern ext;
|
||||||
|
|
||||||
|
#warning Print this warning
|
||||||
|
|
||||||
|
#error This is an error
|
||||||
|
|
||||||
20
Examples/test-suite/errors/pp_illegal_argument.i
Normal file
20
Examples/test-suite/errors/pp_illegal_argument.i
Normal 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
|
||||||
|
|
||||||
6
Examples/test-suite/errors/pp_pragma.i
Normal file
6
Examples/test-suite/errors/pp_pragma.i
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
%module xxx
|
||||||
|
|
||||||
|
|
||||||
|
#pragma SWIG rubbish()
|
||||||
|
|
||||||
|
|
||||||
10
Examples/test-suite/errors/pp_variable_args.i
Normal file
10
Examples/test-suite/errors/pp_variable_args.i
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
%module xxx
|
||||||
|
|
||||||
|
|
||||||
|
%define VARARGS_WRONG(a,
|
||||||
|
x,
|
||||||
|
...,
|
||||||
|
b)
|
||||||
|
xxx
|
||||||
|
%enddef
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue