18 lines · plain
1; RUN: llvm-reduce --delta-passes=global-objects --abort-on-invalid-reduction --test FileCheck --test-arg --check-prefixes=INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t2; RUN: FileCheck --check-prefix=FINAL %s --input-file=%t3 4; INTERESTINGNESS: @a = global i325; FINAL: @a = global i32 0{{$}}6 7@a = global i32 0, section "hi"8 9; INTERESTINGNESS: define {{.*}} @f10; FINAL: define void @f() {11define void @f() section "hello" {12 ret void13}14 15; INTERESTINGNESS: declare {{.*}} @g16; FINAL: declare void @g(){{$}}17declare void @g() section "hello"18