1 ; Test that llvm-reduce can remove uninteresting functions as well as
4 ; RUN: llvm-reduce --test %p/Inputs/remove-funcs.py %s -o - | FileCheck %s
5 ; REQUIRES: plugins, shell
7 ; CHECK-NOT: uninteresting1()
8 define i32 @uninteresting1() {
13 ; CHECK: interesting()
14 define i32 @interesting() {
16 ; CHECK: call i32 @interesting()
17 %call2 = call i32 @interesting()
18 ; CHECK-NOT: call i32 @uninteresting1()
19 %call = call i32 @uninteresting1()
23 ; CHECK-NOT: uninteresting2()
24 define i32 @uninteresting2() {
29 ; CHECK-NOT: uninteresting3()
30 declare void @uninteresting3()