summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/lldb/packages/Python/lldbsuite/test/functionalities/deleted-executable/main.cpp
blob: af00ac263cc1b2ce43645e589556d8e9cc3eb69c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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));
}