1; RUN: llvm-reduce --test FileCheck --test-arg --check-prefixes=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t 2; RUN: FileCheck --check-prefixes=CHECK-FINAL --input-file=%t %s 3 4; Test handling of 'alias'. 5 6; CHECK-INTERESTINGNESS: define void @fn3 7 8; CHECK-FINAL-NOT: global 9 10; CHECK-FINAL-NOT: = alias 11 12; CHECK-FINAL-NOT: @llvm.used 13; CHECK-FINAL-NOT: @llvm.compiler.used 14 15; CHECK-FINAL-NOT: define void @fn1 16; CHECK-FINAL-NOT: define void @fn2 17; CHECK-FINAL: define void @fn3 18; CHECK-FINAL-NOT: define void @fn4 19 20@g1 = global [ 4 x i32 ] zeroinitializer 21@g2 = global [ 4 x i32 ] zeroinitializer 22 23@"$a1" = alias void (), void ()* @fn1 24@"$a2" = alias void (), void ()* @fn2 25@"$a3" = alias void (), void ()* @fn3 26@"$a4" = alias void (), void ()* @fn4 27 28@"$a5" = alias i64, bitcast (i32* getelementptr ([ 4 x i32 ], [ 4 x i32 ]* @g1, i32 0, i32 1) to i64*) 29@"$a6" = alias i64, bitcast (i32* getelementptr ([ 4 x i32 ], [ 4 x i32 ]* @g2, i32 0, i32 1) to i64*) 30 31@llvm.used = appending global [1 x i8*] [ 32 i8* bitcast (i64* @"$a5" to i8*) 33], section "llvm.metadata" 34 35@llvm.compiler.used = appending global [1 x i8*] [ 36 i8* bitcast (i64* @"$a6" to i8*) 37], section "llvm.metadata" 38 39define void @fn1() { 40 ret void 41} 42 43define void @fn2() { 44 ret void 45} 46 47define void @fn3() { 48 ret void 49} 50 51define void @fn4() { 52 ret void 53} 54