aboutsummaryrefslogtreecommitdiffstats
path: root/test/fielddecl.cpp
blob: 6646afd26cf19c7950222925704d2b6dc0f59857 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
namespace fielddecl_ns{
#define fieldmacro fieldthree

struct testStruct {
  int fieldone;
  float fieldtwo;
  int fieldmacro;
};

union testUnion {
  int fieldone;
  bool fieldtwo;
};

class testClass {
public:
  testClass(void);
  virtual ~testClass();

  void myMethod(void);

private:
  int an_arg;
  int another_arg;
};
} // namespace