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/main.cpp | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) (limited to 'test/main.cpp') 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; } -- cgit v1.2.3