xref: /llvm-project/llvm/test/tools/llvm-reduce/remove-global-align.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: @b = global i32
5; FINAL: @b = global i32 0{{$}}
6
7@b = global i32 0, align 4
8
9; INTERESTINGNESS: define {{.*}} @f
10; FINAL: define void @f() {
11define void @f() align 4 {
12  ret void
13}
14
15; INTERESTINGNESS: declare {{.*}} @h
16; FINAL: declare void @h(){{$}}
17declare void @h() align 4
18