1 //===-- main.cpp ------------------------------------------------*- C++ -*-===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 #include <chrono> 10 #include <stdio.h> 11 #include <thread> 12 13 14 int main(int argc, char const *argv[]) 15 { 16 static bool done = false; 17 while (!done) 18 { 19 std::this_thread::sleep_for(std::chrono::milliseconds{100}); 20 } 21 printf("Set a breakpoint here.\n"); 22 return 0; 23 } 24 25