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