aboutsummaryrefslogtreecommitdiffstats
path: root/test/vardecl.cpp
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2020-07-14 15:30:12 +0000
committerbloodstalker <thabogre@gmail.com>2020-07-14 15:30:12 +0000
commit835b5ba3d6594a60963af89b0487f89afe6e19f1 (patch)
tree733fbda827f60ae4d35128605fbef3679f33b05e /test/vardecl.cpp
parentadded a new switch:recorddecl. the test script is still WIP. (diff)
downloadcgrep-835b5ba3d6594a60963af89b0487f89afe6e19f1.tar.gz
cgrep-835b5ba3d6594a60963af89b0487f89afe6e19f1.zip
wip-tests
Diffstat (limited to 'test/vardecl.cpp')
-rw-r--r--test/vardecl.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/vardecl.cpp b/test/vardecl.cpp
index 3f17a21..8bce877 100644
--- a/test/vardecl.cpp
+++ b/test/vardecl.cpp
@@ -1,21 +1,21 @@
namespace vardecl_ns{
-int a;
+int gtesta;
int testFunction(int a, int b);
int testFunction(int a, int b) { return a + b; }
class testClass {
public:
- testClass(int a) : a(a) {}
+ testClass(int a) : testa(a) {}
virtual ~testClass();
void cxxMethod(double a) {}
private:
- int a;
+ int testa;
};
#define vardeclmacro varDeclMacroExpanded
-int vardeclmacro;
+int testvardeclmacro;
}; // namespace