summaryrefslogtreecommitdiffstats
path: root/languages/cpp/debugger/tests/segfault/segfault.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'languages/cpp/debugger/tests/segfault/segfault.cpp')
-rw-r--r--languages/cpp/debugger/tests/segfault/segfault.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/languages/cpp/debugger/tests/segfault/segfault.cpp b/languages/cpp/debugger/tests/segfault/segfault.cpp
new file mode 100644
index 00000000..3a77e500
--- /dev/null
+++ b/languages/cpp/debugger/tests/segfault/segfault.cpp
@@ -0,0 +1,7 @@
+
+
+int main()
+{
+ int* ptr = 0;
+ *ptr = 10;
+} \ No newline at end of file