Skip to content

Commit e92ab2f

Browse files
committedMar 2, 2016
[test/vptr-non-unique-typeinfo] Address Samsonov's post-commit review
Reviewers: samsonov Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D17783 llvm-svn: 262469
1 parent 1d3f4ae commit e92ab2f

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed
 

‎compiler-rt/test/ubsan/TestCases/TypeCheck/Helpers/lit.local.cfg

-3
This file was deleted.

‎compiler-rt/test/ubsan/TestCases/TypeCheck/Helpers/vptr-non-unique-typeinfo-lib.cpp

-5
This file was deleted.

‎compiler-rt/test/ubsan/TestCases/TypeCheck/Helpers/vptr-non-unique-typeinfo-lib.h

-4
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,25 @@
1-
// 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
1+
// RUN: %clangxx -frtti -fsanitize=vptr -fno-sanitize-recover=vptr -I%p/Helpers -g %s -fPIC -shared -o %t-lib.so -DBUILD_SO
22
// RUN: %clangxx -frtti -fsanitize=vptr -fno-sanitize-recover=vptr -I%p/Helpers -g %s -O3 -o %t %t-lib.so
33
// RUN: %run %t
44
//
55
// REQUIRES: cxxabi
66

7-
#include "vptr-non-unique-typeinfo-lib.h"
7+
struct X {
8+
virtual ~X() {}
9+
};
10+
X *libCall();
11+
12+
#ifdef BUILD_SO
13+
14+
X *libCall() {
15+
return new X;
16+
}
17+
18+
#else
819

920
int main() {
1021
X *px = libCall();
1122
delete px;
1223
}
24+
25+
#endif

0 commit comments

Comments
 (0)
Please sign in to comment.