Add test programs to github.

This commit is contained in:
Ernie Pasveer
2021-09-05 11:58:58 -05:00
parent 6357b7a0ef
commit e6971155ab
45 changed files with 621 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
#include "/peak/src/Seer/hellosegv/function1.h"
#include <iostream>
#include <unistd.h>
#include <signal.h>
void function1 (const std::string& text) {
int i = 42;
sleep(2); // Simulate doing work.
std::cout << text << i << std::endl;
//raise(SIGSEGV);
int* x = 0;
*x = 2112;
sleep(3); // Simulate doing work.
}