xref: /llvm-project/llvm/test/tools/llvm-reduce/remove-section.ll (revision 80ba72b07bafa0e123259e780eb24411a8300d68)
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 %t
2; RUN: FileCheck --check-prefix=FINAL %s --input-file=%t
3
4; INTERESTINGNESS: @a = global i32
5; FINAL: @a = global i32 0{{$}}
6
7@a = global i32 0, section "hi"
8
9; INTERESTINGNESS: define {{.*}} @f
10; FINAL: define void @f() {
11define void @f() section "hello" {
12  ret void
13}
14
15; INTERESTINGNESS: declare {{.*}} @g
16; FINAL: declare void @g(){{$}}
17declare void @g() section "hello"
18