]>
Commit | Line | Data |
---|---|---|
92a42be0 SL |
1 | // RUN: %clangxx -frtti -fsanitize=vptr -fno-sanitize-recover=vptr %s -o %t |
2 | // RUN: %run %t | |
3 | ||
4 | // REQUIRES: cxxabi | |
5 | ||
6 | int volatile n; | |
7 | ||
8 | struct A { virtual ~A() {} }; | |
9 | struct B: virtual A {}; | |
10 | struct C: virtual A { ~C() { n = 0; } }; | |
11 | struct D: virtual B, virtual C {}; | |
12 | ||
13 | int main() { delete new D; } |