/* This testcase checks whether Swig correctly uses the new general-purpose smart pointers introduced in C++0x: - shared_ptr - weak_ptr - unique_ptr */ %module cpp0x_smart_pointers %inline %{ #include #include #include struct A { std::shared_ptr a1(new double); std::unique_ptr a2(new double); std::weak_ptr a3(a1); }; %}