//===-- main.cpp ------------------------------------------------*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#include <iostream>
#include <stdio.h>

int main(int argc, char const *argv[])
{
    getchar();
    printf("Set a breakpoint here.\n");
    return 0;
}


//===-- main.cpp ------------------------------------------------*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#include <chrono>
#include <stdio.h>
#include <thread>


int main(int argc, char const *argv[])
{
    static bool done = false;
    while (!done)
    {
      std::this_thread::sleep_for(std::chrono::milliseconds{100});
    }
    printf("Set a breakpoint here.\n");
    return 0;
}


Fix breakpoint_set_restart test for Windows
Fix breakpoint_set_restart test for Windows

When run with the multiprocess test runner, the getchar() trick doesn't work, so ninja check-lldb would fail on this test, but running the test directly worked fine.

Differential Revision: http://reviews.llvm.org/D19035

git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@266145 91177308-0d34-0410-b5e6-96231b3b80d8
