aboutsummaryrefslogtreecommitdiff
path: root/test/cfi/overwrite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/cfi/overwrite.cpp')
-rw-r--r--test/cfi/overwrite.cpp15
1 files changed, 1 insertions, 14 deletions
diff --git a/test/cfi/overwrite.cpp b/test/cfi/overwrite.cpp
index a24e628326f3..90f995d87bca 100644
--- a/test/cfi/overwrite.cpp
+++ b/test/cfi/overwrite.cpp
@@ -39,20 +39,7 @@ void foo() {
void *fake_vtable[] = { 0, 0, (void *)&foo };
int main() {
-#ifdef B32
- break_optimization(new Deriver<A, 0>);
-#endif
-
-#ifdef B64
- break_optimization(new Deriver<A, 0>);
- break_optimization(new Deriver<A, 1>);
-#endif
-
-#ifdef BM
- break_optimization(new Deriver<A, 0>);
- break_optimization(new Deriver<A, 1>);
- break_optimization(new Deriver<A, 2>);
-#endif
+ create_derivers<A>();
A *a = new A;
*((void **)a) = fake_vtable + 2; // UB here