blob: c4ab9361b7a1d189b6e553b4935c94c15150d82b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// RUN: %clangxx -frtti -fsanitize=vptr -fno-sanitize-recover=vptr -I%p/Helpers %p/Helpers/vptr-non-unique-typeinfo-lib.cpp -fPIC -shared -o %t-lib.so
// RUN: %clangxx -frtti -fsanitize=vptr -fno-sanitize-recover=vptr -I%p/Helpers -g %s -O3 -o %t %t-lib.so
// RUN: %run %t
//
// REQUIRES: cxxabi
#include "vptr-non-unique-typeinfo-lib.h"
int main() {
X *px = libCall();
delete px;
}
|