aboutsummaryrefslogtreecommitdiffstats
path: root/test/main.cpp
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2020-06-04 14:25:14 +0000
committerbloodstalker <thabogre@gmail.com>2020-06-04 14:25:14 +0000
commit2948f61947b9790a29d34fc48d8e5683467919db (patch)
treeceff93e8c5a38fa9b0056b432672e7205bf5f0d8 /test/main.cpp
parentadding llvm11 to travis (diff)
downloadcgrep-2948f61947b9790a29d34fc48d8e5683467919db.tar.gz
cgrep-2948f61947b9790a29d34fc48d8e5683467919db.zip
added a new switch:recorddecl. the test script is still WIP.
Diffstat (limited to 'test/main.cpp')
-rw-r--r--test/main.cpp29
1 files changed, 15 insertions, 14 deletions
diff --git a/test/main.cpp b/test/main.cpp
index 87b7eae..c48f5fb 100644
--- a/test/main.cpp
+++ b/test/main.cpp
@@ -1,14 +1,15 @@
-class myClass {
- public:
- myClass() = default;
- ~myClass() {}
-
- void myMehtod1(void) {}
- void myMehtod2(void) {}
- private:
- int a;
- float b;
+class myClassmain {
+public:
+ myClassmain() = default;
+ ~myClassmain() {}
+
+ void myMehtod1(void) {}
+ void myMehtod2(void) {}
+
+private:
+ int a;
+ float b;
};
struct myStruct {
@@ -31,13 +32,13 @@ struct verymuchStruct {
void myFunc1(void) {}
void myFunc2(void) {}
-int main (int argc, char** argv) {
- myClass mc;
+int main(int argc, char **argv) {
+ myClassmain mc;
mc.myMehtod1();
mc.myMehtod2();
int a;
float b;
- int c,d;
- a = c+d;
+ int c, d;
+ a = c + d;
return 0;
}