8d5d041590
Find new home for downstream RHEL tests. Upstream them. The set of tests used for fedora gating stays intact: The gating tests are only those having the tier1 tag set in their main.fmf file. The testplan plans/ci.fmf filters the others out from gating. The set of Fedora gating tests stays the same as it was before this change.
40 lines
819 B
C++
40 lines
819 B
C++
#include <iostream>
|
|
|
|
class Explicit{
|
|
public:
|
|
int data;
|
|
Explicit();
|
|
Explicit(int argument);
|
|
Explicit(const Explicit &original);
|
|
~Explicit();
|
|
};
|
|
|
|
class Implicit{
|
|
public:
|
|
int data;
|
|
};
|
|
|
|
Explicit::Explicit() { this->data=0; }
|
|
Explicit::Explicit(int a) {this->data=0; }
|
|
Explicit::Explicit(const Explicit &orig){this->data = orig.data;}
|
|
Explicit::~Explicit(){}
|
|
|
|
int main(){
|
|
Explicit e1; //static ctor call
|
|
Explicit *e2;
|
|
|
|
e2 = new Explicit(); //dynamic ctor call
|
|
delete e2; //dynamic dtor call
|
|
|
|
e2 = new Explicit(2); //dynamic ctor call
|
|
Explicit e3 = *e2; //copy ctor
|
|
delete e2; //dtor
|
|
|
|
Implicit i1; //ctor
|
|
Implicit *i2 = new Implicit(); //ctor
|
|
Implicit i3 = *i2; //implicit copy ctor
|
|
delete i2; //dtor
|
|
|
|
return 0; // dtor e1, e3, i1, i3
|
|
}
|