From afae176824d8fd1733e5e302a62e6bd09a86aff2 Mon Sep 17 00:00:00 2001 From: Martin Nowack Date: Sat, 22 Jul 2017 01:28:40 +0200 Subject: Updated test cases to reflect removal of LLVM 2.9 --- test/regression/2016-11-24-bitcast-weak-alias.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'test/regression/2016-11-24-bitcast-weak-alias.c') diff --git a/test/regression/2016-11-24-bitcast-weak-alias.c b/test/regression/2016-11-24-bitcast-weak-alias.c index 3e4ebe64..d35f6fa7 100644 --- a/test/regression/2016-11-24-bitcast-weak-alias.c +++ b/test/regression/2016-11-24-bitcast-weak-alias.c @@ -26,18 +26,11 @@ int alias_function(struct v1 *, struct v1 *, int) int main(int argc, char** argv) { struct v2 local = { .e= 0, .f=0 }; - int choice = (argc == 1); int number = 0; - // FIXME: Drop the guard when llvm 2.9 is dropped. - // Prevent actually making the call at runtime due to llvm-gcc - // injecting an abort if the call is made. The call is guarded - // in such a way that the compiler cannot remove the call. - if (choice) { - // Call via a bitcasted alias. - number = ((int (*)(struct v2 *, struct v2 *, int))alias_function)( - &local, &local, 0); - } + // Call via a bitcasted alias. + number = ((int (*)(struct v2 *, struct v2 *, int))alias_function)(&local, + &local, 0); return number % 255; } -- cgit 1.4.1