diff options
Diffstat (limited to 'Tests/CTestTestCrash/crash.cxx')
-rw-r--r-- | Tests/CTestTestCrash/crash.cxx | 6 |
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; +} |