PageRenderTime 23ms CodeModel.GetById 13ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/imports_a.h

#
C++ Header | 21 lines | 14 code | 4 blank | 3 comment | 0 complexity | 93b46ce62aae801e19127ed143e87fcf MD5 | raw file
 1#ifndef a_h
 2#define a_h
 3enum GlobalEnum { globalenum1=1, globalenum2 };
 4
 5/* This function should be static as it will be emitted into the code for
 6 * every module.  All _static targets would fail here with a multiple 
 7 * definition if this is not static. */
 8static GlobalEnum global_test(GlobalEnum e) { return e; }
 9
10class A { 
11 public: 
12  A() {}
13  virtual ~A() {}
14  
15  void hello() {}
16
17  enum MemberEnum { memberenum1=10, memberenum2 };
18  virtual MemberEnum member_virtual_test(MemberEnum e) { return e; }
19  virtual GlobalEnum global_virtual_test(GlobalEnum e) { return global_test(e); }
20};
21#endif