diff options
| author | Zachary Turner <zturner@google.com> | 2015-08-25 22:25:21 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2015-08-25 22:25:21 +0000 |
| commit | d1c5b6f66b03b1246ec27ab1cb917946d53f2036 (patch) | |
| tree | 337e8c353884b23a491a474934546bf7ddea1bce /lldb/test/expression_command/expr-in-syscall/main.cpp | |
| parent | 289287060b7076935b544ba60cc6b5b5091da7c8 (diff) | |
| download | bcm5719-llvm-d1c5b6f66b03b1246ec27ab1cb917946d53f2036.tar.gz bcm5719-llvm-d1c5b6f66b03b1246ec27ab1cb917946d53f2036.zip | |
Fix a bunch of portability issues in test executables.
llvm-svn: 245983
Diffstat (limited to 'lldb/test/expression_command/expr-in-syscall/main.cpp')
| -rw-r--r-- | lldb/test/expression_command/expr-in-syscall/main.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lldb/test/expression_command/expr-in-syscall/main.cpp b/lldb/test/expression_command/expr-in-syscall/main.cpp new file mode 100644 index 00000000000..743b69434d5 --- /dev/null +++ b/lldb/test/expression_command/expr-in-syscall/main.cpp @@ -0,0 +1,12 @@ +#include <chrono> +#include <thread> + +volatile int release_flag = 0; + +int main(int argc, char const *argv[]) +{ + while (! release_flag) // Wait for debugger to attach + std::this_thread::sleep_for(std::chrono::seconds(3)); + + return 0; +} |

