diff options
author | Raphael Isemann <teemperor@gmail.com> | 2019-10-21 16:07:45 +0000 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2019-10-21 16:07:45 +0000 |
commit | 7a79e10a82e0d5f84385566493823959dc1697b3 (patch) | |
tree | f7e201488d92617009aa1af51ac8e2775c0a8dcc /lldb/packages/Python/lldbsuite/test/commands/expression/static-initializers/main.cpp | |
parent | 22755e4ea8fcb0e6f5b4fd0cbfcdff2a3dcf87a3 (diff) | |
download | bcm5719-llvm-7a79e10a82e0d5f84385566493823959dc1697b3.tar.gz bcm5719-llvm-7a79e10a82e0d5f84385566493823959dc1697b3.zip |
[lldb] Add test for executing static initializers in expression command
llvm-svn: 375422
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/commands/expression/static-initializers/main.cpp')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/commands/expression/static-initializers/main.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/commands/expression/static-initializers/main.cpp b/lldb/packages/Python/lldbsuite/test/commands/expression/static-initializers/main.cpp new file mode 100644 index 00000000000..0bcf1eb3eda --- /dev/null +++ b/lldb/packages/Python/lldbsuite/test/commands/expression/static-initializers/main.cpp @@ -0,0 +1,11 @@ +#include <cstdlib> + +int counter = 0; + +void inc_counter() { ++counter; } + +void do_abort() { abort(); } + +int main() { + return 0; // break here +} |