mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-13 12:59:55 -05:00
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
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// causes a segfault
|
||||
int main()
|
||||
{
|
||||
int* ptr = 0;
|
||||
volatile int* ptr = 0;
|
||||
*ptr = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user