repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang] Fix implicit integer conversion for opaque enums declared in class templates...
[llvm-project.git]
/
lldb
/
test
/
API
/
commands
/
process
/
attach
/
main.cpp
blob
b4ed48fade3060311b0132822ced38d03cbce1f9
1
#include <stdio.h>
2
3
#include <chrono>
4
#include <thread>
5
6
volatile
int
g_val
=
12345
;
7
8
int
main
(
int
argc
,
char const
*
argv
[]) {
9
int
temp
;
10
lldb_enable_attach
();
11
12
// Waiting to be attached by the debugger.
13
temp
=
0
;
14
15
while
(
temp
<
30
) {
16
std
::
this_thread
::
sleep_for
(
std
::
chrono
::
seconds
(
2
));
// Waiting to be attached...
17
temp
++;
18
}
19
20
printf
(
"Exiting now
\n
"
);
21
}