online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> #include <string> using namespace std; class test { public: test(int p) { cout << "The constructor ( test(int p) ) was called: "<<this<<endl; } test(test&&c)noexcept { cout << "The constructor ( test(test && c) ) was called: "<<this << endl; } ~test() { cout << "The distructor was called: "<<this << endl; } }; test function() { test i(8); return i; } int main() { test o=std::move(test(5)); return 0; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue