From 2948f61947b9790a29d34fc48d8e5683467919db Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Thu, 4 Jun 2020 18:55:14 +0430 Subject: added a new switch:recorddecl. the test script is still WIP. --- test/vardecl.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/vardecl.cpp (limited to 'test/vardecl.cpp') diff --git a/test/vardecl.cpp b/test/vardecl.cpp new file mode 100644 index 0000000..3f17a21 --- /dev/null +++ b/test/vardecl.cpp @@ -0,0 +1,21 @@ + +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 -- cgit v1.2.3