aboutsummaryrefslogtreecommitdiffstats
path: root/test/vardecl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/vardecl.cpp')
-rw-r--r--test/vardecl.cpp21
1 files changed, 21 insertions, 0 deletions
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