| 1 | #! /bin/sh |
| 2 | |
| 3 | # Regression test for https://bugs.debian.org/768280 |
| 4 | |
| 5 | set -e |
| 6 | |
| 7 | cat <<-'EOF' > nested_scope.i |
| 8 | %module nested_scope |
| 9 | %feature ("flatnested"); |
| 10 | |
| 11 | %inline %{ |
| 12 | class Outer1 { |
| 13 | struct Nested1; |
| 14 | public: |
| 15 | struct Nested2; |
| 16 | }; |
| 17 | struct Outer1::Nested2 { |
| 18 | int data; |
| 19 | }; |
| 20 | %} |
| 21 | EOF |
| 22 | |
| 23 | swig -version |
| 24 | swig -c++ -python nested_scope.i |
| 25 | echo "Wrapping for Python: okay" |
| 26 | swig -c++ -ruby nested_scope.i |
| 27 | echo "Wrapping for Ruby: okay" |
| 28 | swig -c++ -tcl nested_scope.i |
| 29 | echo "Wrapping for Tcl: okay" |