PageRenderTime 17ms CodeModel.GetById 12ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/trunk/Examples/test-suite/const_const_2.i

#
Swig | 21 lines | 12 code | 5 blank | 4 comment | 0 complexity | ac8766cbf7fb144cefe791dc7a07bfdd MD5 | raw file
 1/* This interface file tests whether SWIG handles doubly constant
 2   methods right. SF Bug #216057 against Swig 1.3a5, reported by
 3   Mike Romberg <romberg@users.sf.net>
 4*/
 5
 6%module const_const_2
 7
 8%inline %{
 9class Spam { 
10public: 
11  Spam() {} 
12}; 
13
14class Eggs { 
15 public: 
16 Eggs() {} 
17
18 const Spam *spam(void) const { return new Spam(); } 
19}; 
20
21 %}