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/cxxmembercallexpr.cpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 test/cxxmembercallexpr.cpp (limited to 'test/cxxmembercallexpr.cpp') diff --git a/test/cxxmembercallexpr.cpp b/test/cxxmembercallexpr.cpp new file mode 100644 index 0000000..8d34dd5 --- /dev/null +++ b/test/cxxmembercallexpr.cpp @@ -0,0 +1,28 @@ + +namespace cxxmembercallexpr_ns{ +class testClass { +public: + testClass() = default; + int testFunction(int a, int b) { return a + b; } + +private: +}; + +struct testStruct { +public: + testStruct() = default; + int testFunction(int a, int b) { + return a + b; + }; +}; +} // namespace + +int __attribute__((weak)) main(int argc, char *argv[]) { + int a = 10; + int b = 10; + cxxmembercallexpr_ns::testClass tc; + tc.testFunction(a, b); + cxxmembercallexpr_ns::testStruct ts; + ts.testFunction(a, b); + return 0; +} -- cgit v1.2.3