aboutsummaryrefslogblamecommitdiffstats
path: root/test/vardecl.cpp
blob: 3f17a2197cab156f5f90384cacbc77c95a1114f7 (plain) (tree)




















                                                
namespace vardecl_ns{
int a;

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

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

  void cxxMethod(double a) {}

private:
  int a;
};

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