diff options
| author | Alexey Samsonov <samsonov@google.com> | 2012-02-13 08:50:21 +0000 |
|---|---|---|
| committer | Alexey Samsonov <samsonov@google.com> | 2012-02-13 08:50:21 +0000 |
| commit | b30df37ebf9692ee9beb0054427ed1b9b7cd754f (patch) | |
| tree | e2a166793e0d35f9c3024bb2165be34e14851c71 /compiler-rt/lib/asan/output_tests/stack-overflow.cc | |
| parent | f9affd3a0c04d1a9b6c4753ca84819ab64a360c1 (diff) | |
| download | bcm5719-llvm-b30df37ebf9692ee9beb0054427ed1b9b7cd754f.tar.gz bcm5719-llvm-b30df37ebf9692ee9beb0054427ed1b9b7cd754f.zip | |
AddressSanitizer: move output tests to a separate directory
llvm-svn: 150367
Diffstat (limited to 'compiler-rt/lib/asan/output_tests/stack-overflow.cc')
| -rw-r--r-- | compiler-rt/lib/asan/output_tests/stack-overflow.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler-rt/lib/asan/output_tests/stack-overflow.cc b/compiler-rt/lib/asan/output_tests/stack-overflow.cc new file mode 100644 index 00000000000..dd86aa32514 --- /dev/null +++ b/compiler-rt/lib/asan/output_tests/stack-overflow.cc @@ -0,0 +1,7 @@ +#include <string.h> +int main(int argc, char **argv) { + char x[10]; + memset(x, 0, 10); + int res = x[argc * 10]; // BOOOM + return res; +} |

