simple #warning and #error tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8569 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
341b392845
commit
152f6d18dd
1 changed files with 7 additions and 0 deletions
|
|
@ -301,4 +301,11 @@ int test(int defined)
|
|||
|
||||
%}
|
||||
|
||||
#pragma SWIG nowarn=SWIGWARN_PP_CPP_WARNING
|
||||
#warning "Some warning"
|
||||
|
||||
/* check that #error can be turned into a warning, but suppress the warning message for the test-suite! */
|
||||
#pragma SWIG nowarn=SWIGWARN_PP_CPP_ERROR
|
||||
#pragma SWIG cpperraswarn=1
|
||||
#error "Some error"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue