summaryrefslogtreecommitdiff
path: root/Tests/CTestTestCrash/crash.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/CTestTestCrash/crash.cxx')
-rw-r--r--Tests/CTestTestCrash/crash.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/CTestTestCrash/crash.cxx b/Tests/CTestTestCrash/crash.cxx
new file mode 100644
index 000000000..bc9e096e4
--- /dev/null
+++ b/Tests/CTestTestCrash/crash.cxx
@@ -0,0 +1,6 @@
+//causes a segfault
+int main()
+{
+ int* ptr = 0;
+ *ptr = 1;
+}