aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/terminate_handler/sample/pure-virtual/main.cpp
blob: 58217d5f24071c817606f3dc6ca4fe2695328e80 (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;
}