aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/terminate_handler/sample/segv/main.cpp
blob: 0b29cc193e348736d46efd41c1844a38628a0605 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "../../segv_handler.h" 
 
void Bar(int* x) { 
    *x = 11; 
} 
 
void Foo(int* x) { 
    Bar(x); 
} 
 
int main() { 
    InstallSegvHandler(); 
    Foo((int*)1);
    return 0; 
}