Language
Compiler
Options
$
CONSTR WAS HERE
COPY CONSTR WAS HERE
CONSTR WAS HERE
DESTR WAS HERE
DESTR WAS HERE
DESTR WAS HERE
Exit Code:
0
Author
anonymous
over 7 years ago
Author
anonymous
over 7 years ago
$
prog.cc:9:21: warning: unused parameter 'ob' [-Wunused-parameter]
C1(const C1&ob){ cout<<"COPY CONSTR WAS HERE"<<endl; }
^
prog.cc:14:10: warning: unused parameter 'x' [-Wunused-parameter]
C1 f1(C1 x){ return {};}
^
2 warnings generated.
CONSTR WAS HERE
COPY CONSTR WAS HERE
CONSTR WAS HERE
DESTR WAS HERE
DESTR WAS HERE
DESTR WAS HERE