This commit is contained in:
T0b1
2023-06-03 01:32:24 +02:00
parent ec2eeb10f7
commit 4f0f320ac4
9 changed files with 172 additions and 11 deletions

BIN
tmp/main

Binary file not shown.

View File

@@ -1,11 +0,0 @@
#include <stdint.h>
#include <unistd.h>
int main(int argc, char* argv[]) {
int tmp = 10;
while (tmp != 0) {
sleep(1);
tmp--;
}
return 0;
}

19
tmp/main.cpp Normal file
View File

@@ -0,0 +1,19 @@
#include <stdint.h>
#include <unistd.h>
namespace {
struct MyType {
int data;
};
}
void helper_fn();
int main(int argc, char* argv[]) {
MyType tmp = MyType{10};
while (tmp.data != 0) {
helper_fn();
tmp.data--;
}
return 0;
}

13
tmp/sec.cpp Normal file
View File

@@ -0,0 +1,13 @@
#include <cstdint>
#include <unistd.h>
namespace test {
struct MyType {
int data;
};
}
void helper_fn() {
test::MyType tmp = test::MyType{1};
sleep(tmp.data);
}