Commits

wlav committed f2d76f0

files needed for update-handling testing

Comments (0)

Files changed (3)

pypy/module/cppyy/test/advancedcpp2.cxx

+#include "advancedcpp2.h"
+
+
+// for namespace testing
+int a_ns::g_g                         =  77;
+int a_ns::g_class::s_g                =  88;
+int a_ns::g_class::h_class::s_h       =  99;
+int a_ns::d_ns::g_i                   = 111;
+int a_ns::d_ns::i_class::s_i          = 222;
+int a_ns::d_ns::i_class::j_class::s_j = 333;
+
+int a_ns::get_g_g() { return g_g; }
+int a_ns::d_ns::get_g_i() { return g_i; }

pypy/module/cppyy/test/advancedcpp2.h

+//===========================================================================
+namespace a_ns {                   // for namespace testing
+   extern int g_g;
+   int get_g_g();
+
+   struct g_class {
+      g_class() { m_g = -7; }
+      int m_g;
+      static int s_g;
+
+      struct h_class {
+         h_class() { m_h = -8; }
+         int m_h;
+         static int s_h;
+      };
+   };
+
+   namespace d_ns {
+      extern int g_i;
+      int get_g_i();
+
+      struct i_class {
+         i_class() { m_i = -9; }
+         int m_i;
+         static int s_i;
+
+         struct j_class {
+            j_class() { m_j = -10; }
+            int m_j;
+            static int s_j;
+         };
+      };
+
+   } // namespace d_ns
+
+} // namespace a_ns

pypy/module/cppyy/test/advancedcpp2.xml

+<lcgdict>
+
+  <namespace name="a_ns" />
+  <namespace pattern="a_ns::*" />
+  <class pattern="a_ns::*" />
+  <variable name="a_ns::g_g" />
+  <function name="a_ns::get_g_g" />
+  <variable name="a_ns::d_ns::g_i" />
+  <function name="a_ns::d_ns::get_g_i" />
+
+</lcgdict>