PageRenderTime 22ms CodeModel.GetById 13ms app.highlight 8ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/rel-1-3-15/SWIG/Examples/test-suite/const_const_2.i

#
Swig | 21 lines | 12 code | 5 blank | 4 comment | 0 complexity | 50f8b9c92dd98ccdcf147291ce90c0b8 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
 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 test
 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 %}