aboutsummaryrefslogtreecommitdiffstats
path: root/test/vardecl.cpp
blob: 8bce877b74bcd53b3c211c4a67c2cb41a9f283d9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
namespace vardecl_ns{
int gtesta;

int testFunction(int a, int b);
int testFunction(int a, int b) { return a + b; }

class testClass {
public:
  testClass(int a) : testa(a) {}
  virtual ~testClass();

  void cxxMethod(double a) {}

private:
  int testa;
};

#define vardeclmacro varDeclMacroExpanded
int testvardeclmacro;
}; // namespace