diff options
author | pommicket <pommicket@gmail.com> | 2022-11-07 11:19:03 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-11-07 11:19:03 -0500 |
commit | 978248bc21b336960efcf8b2599f13bb5ec1cf6a (patch) | |
tree | ead0bc7a996a1fd9b85ab3e214df20a3bcb12541 /tests | |
parent | 23fb593011ce985e6e50e26e9765f78d27994d40 (diff) |
c (working) and c++ (not working) inputs
Diffstat (limited to 'tests')
-rw-r--r-- | tests/basic.c | 10 | ||||
-rw-r--r-- | tests/cpp.cpp | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/basic.c b/tests/basic.c new file mode 100644 index 0000000..b8a6d61 --- /dev/null +++ b/tests/basic.c @@ -0,0 +1,10 @@ +#include <stdio.h> +#include <stdlib.h> + +int my_number; +void entry() { + my_number = 137; + printf("%d\n",my_number); + exit(0); + +} diff --git a/tests/cpp.cpp b/tests/cpp.cpp new file mode 100644 index 0000000..5da16e5 --- /dev/null +++ b/tests/cpp.cpp @@ -0,0 +1,10 @@ +#include <vector> +#include <iostream> +#include <algorithm> +#include <climits> + +extern "C" int main(void) { + std::vector<int> numbers = {}; + + exit((int)(long)&numbers); +} |