diff options
author | bloodstalker <thabogre@gmail.com> | 2020-06-04 14:25:14 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2020-06-04 14:25:14 +0000 |
commit | 2948f61947b9790a29d34fc48d8e5683467919db (patch) | |
tree | ceff93e8c5a38fa9b0056b432672e7205bf5f0d8 /test/main.cpp | |
parent | adding llvm11 to travis (diff) | |
download | cgrep-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.cpp | 29 |
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; } |