/tags/rel-1-3-26/SWIG/Examples/test-suite/inctest.i

# · Swig · 16 lines · 14 code · 2 blank · 0 comment · 0 complexity · f063865ab36242d0ce5d8f3da1da2fb6 MD5 · raw file

  1. %module inctest
  2. //
  3. // This test fails if swig is not able to include
  4. // the following two files:
  5. //
  6. // 'testdir/subdir1/hello.i'
  7. // 'testdir/subdir2/hello.i'
  8. //
  9. // since they have the same basename 'hello', swig is only
  10. // including one. This is not right, it must include both,
  11. // as the well known compilers do.
  12. //
  13. // Also repeats the test for the import directive in subdirectories
  14. %include "testdir/test.i"