aboutsummaryrefslogtreecommitdiff
path: root/test/cfi/bad-cast.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/cfi/bad-cast.cpp')
-rw-r--r--test/cfi/bad-cast.cpp15
1 files changed, 1 insertions, 14 deletions
diff --git a/test/cfi/bad-cast.cpp b/test/cfi/bad-cast.cpp
index 9ba6f6dbacec..e2f4f25a4a28 100644
--- a/test/cfi/bad-cast.cpp
+++ b/test/cfi/bad-cast.cpp
@@ -87,20 +87,7 @@ struct C : A {
};
int main(int argc, char **argv) {
-#ifdef B32
- break_optimization(new Deriver<B, 0>);
-#endif
-
-#ifdef B64
- break_optimization(new Deriver<B, 0>);
- break_optimization(new Deriver<B, 1>);
-#endif
-
-#ifdef BM
- break_optimization(new Deriver<B, 0>);
- break_optimization(new Deriver<B, 1>);
- break_optimization(new Deriver<B, 2>);
-#endif
+ create_derivers<B>();
B *b = new B;
break_optimization(b);