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:
William S Fulton 2006-01-26 22:33:34 +00:00
commit 152f6d18dd

View file

@ -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"