test: Remove unnecessary bits of hello-exception.cpp
These bits are tested by hello-cpp.cpp.
This commit is contained in:
1 parent
06cf71558e
commit
8a60836d87
1 file changed
+1
-14
@@ -16,21 +16,9 @@
|
|||||||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <iostream>
|
#include <exception>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
class Hello {
|
|
||||||
public:
|
|
||||||
Hello() {
|
|
||||||
printf("Hello ctor\n");
|
|
||||||
}
|
|
||||||
~Hello() {
|
|
||||||
printf("Hello dtor\n");
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
Hello global_h;
|
|
||||||
|
|
||||||
class RecurseClass {
|
class RecurseClass {
|
||||||
public:
|
public:
|
||||||
RecurseClass(int v) : val(v) {
|
RecurseClass(int v) : val(v) {
|
||||||
@@ -61,7 +49,6 @@ void recurse(int val) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char* argv[]) {
|
int main(int argc, char* argv[]) {
|
||||||
std::cout<<"Hello world C++"<<std::endl;
|
|
||||||
recurse(10);
|
recurse(10);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user