Files
clang-p2996/lldb/test/api/multithreaded/inferior.cpp
Daniel Malea b2132553d9 Adding C++ tests that drive LLDB from multiple threads
- test_breakpoint_callback -- filed llvm.org/pr-16000
- test_listener_resume -- resume a process from a thread waiting on SBListener
- test_listener_event_description -- SBEvent description from SBListener thread
- test_listener_event_process -- query process/thread/stack info from SBListener thread

llvm-svn: 181819
2013-05-14 19:13:25 +00:00

18 lines
206 B
C++

#include <iostream>
using namespace std;
int next() {
static int i = 0;
cout << "incrementing " << i << endl;
return ++i;
}
int main() {
int i = 0;
while (i < 5)
i = next();
return 0;
}