1#include <chrono>
2#include <fstream>
3#include <thread>
4
5int main(int argc, char const *argv[]) {
6 lldb_enable_attach();
7
8 {
9 // Create file to signal that this process has started up.
10 std::ofstream f;
11 f.open(s: argv[1]);
12 }
13
14 std::this_thread::sleep_for(rtime: std::chrono::seconds(60));
15}
16

source code of lldb/test/API/functionalities/deleted-executable/main.cpp