diff options
author | Brad King <brad.king@kitware.com> | 2021-11-03 14:39:38 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-11-03 14:40:03 (GMT) |
commit | d2a6df9f7c5b53f0240073aa28d22c5029b1accb (patch) | |
tree | 61ae7d4a0659e81d3f9a4f37113a7d3ebe608027 /Tests | |
parent | 4743b431264c6d77ff6f9b942fa6f36bca5f0602 (diff) | |
parent | 7c90d00af9481250bf42f09db8c29dd5b1bec323 (diff) | |
download | CMake-d2a6df9f7c5b53f0240073aa28d22c5029b1accb.zip CMake-d2a6df9f7c5b53f0240073aa28d22c5029b1accb.tar.gz CMake-d2a6df9f7c5b53f0240073aa28d22c5029b1accb.tar.bz2 |
Merge topic 'no-opt-crash'
7c90d00af9 Tests: Prevent compiler optimizing away test code in CTestTestCrash
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6688
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CTestTestCrash/crash.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/CTestTestCrash/crash.cxx b/Tests/CTestTestCrash/crash.cxx index 370c3fb..88d4b1d 100644 --- a/Tests/CTestTestCrash/crash.cxx +++ b/Tests/CTestTestCrash/crash.cxx @@ -1,6 +1,6 @@ // causes a segfault int main() { - int* ptr = 0; + volatile int* ptr = 0; *ptr = 1; } |