aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/terminate_handler/sample/pure-virtual/main.cpp
blob: 6e9c9fbff4020e43a4b939a3aebfaf6a5ec2735d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
 
struct TFoo { 
    TFoo() { 
        Baz(); 
    } 
 
    void Baz() { 
        Bar(); 
    } 
 
    virtual void Bar() = 0; 
}; 
 
struct TQux: public TFoo { 
    void Bar() override {
    }
}; 
 
int main() { 
    TQux(); 
    return 0; 
}