aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/functionalities/deleted-executable/main.cpp
blob: 1536c6cf9e4a7d9820a965890c461f6334cf2cf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "attach.h"
#include <chrono>
#include <fstream>
#include <thread>

int main(int argc, char const *argv[]) {
    lldb_enable_attach();

    {
      // Create file to signal that this process has started up.
      std::ofstream f;
      f.open(argv[1]);
    }

    std::this_thread::sleep_for(std::chrono::seconds(60));
}