~ubuntu-branches/ubuntu/hardy/swig1.3/hardy

« back to all changes in this revision

Viewing changes to Examples/test-suite/enum_thorough.i

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-12-05 01:16:04 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051205011604-ygx904it6413k3go
Tags: 1.3.27-1ubuntu1
Resynchronise with Debian again, for the new subversion packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
}
52
52
 
53
53
 
54
 
enum colour { red, blue, green = 10 };
 
54
enum colour { red=-1, blue, green = 10 };
55
55
colour colourTest1(colour e) { return e; }
56
56
enum colour colourTest2(enum colour e) { return e; }
57
57
const colour colourTest3(const colour e) { return e; }
461
461
};
462
462
 
463
463
// Unnamed enum instance
 
464
extern "C" {
464
465
enum { globalinstance1, globalinstance2, globalinstance3 = 30 } GlobalInstance;
 
466
}
465
467
 
466
468
struct Instances {
467
469
  enum { memberinstance1, memberinstance2, memberinstance3 = 300 } MemberInstance;