1 ; Test that llvm-reduce can remove uninteresting functions as well as
6 ; copy the test file to preserve executable bit
7 ; RUN: cp %p/Inputs/remove-funcs.py %t/test.py
8 ; get the python path from lit
9 ; RUN: echo "#!" %python > %t/test.py
10 ; then include the rest of the test script
11 ; RUN: cat %p/Inputs/remove-funcs.py >> %t/test.py
13 ; RUN: llvm-reduce --test %t/test.py %s -o - | FileCheck %s
16 ; CHECK-NOT: uninteresting1()
17 define i32 @uninteresting1() {
22 ; CHECK: interesting()
23 define i32 @interesting() {
25 ; CHECK: call i32 @interesting()
26 %call2 = call i32 @interesting()
27 ; CHECK-NOT: call i32 @uninteresting1()
28 %call = call i32 @uninteresting1()
32 ; CHECK-NOT: uninteresting2()
33 define i32 @uninteresting2() {
38 ; CHECK-NOT: uninteresting3()
39 declare void @uninteresting3()