[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / llvm / test / tools / llvm-reduce / remove-global-variable-attributes.ll
blobbec3afd960e90379a7070a21283aa1e8d4c73b0e
1 ; Test that llvm-reduce can remove uninteresting attributes.
3 ; RUN: llvm-reduce --test FileCheck --test-arg --check-prefixes=CHECK-ALL,CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t
4 ; RUN: cat %t | FileCheck --check-prefixes=CHECK-ALL,CHECK-FINAL %s
6 ; CHECK-ALL: @gv0 = global i32 0 #0
7 ; CHECK-ALL-NEXT: @gv1 = global i32 0 #1
8 ; CHECK-ALL-NEXT: @gv2 = global i32 0
9 @gv0 = global i32 0 #0
10 @gv1 = global i32 0 #1
11 @gv2 = global i32 0 #2
13 ; CHECK-INTERESTINGNESS: attributes #0 = {
14 ; CHECK-INTERESTINGNESS-SAME: "attr0"
15 ; CHECK-INTERESTINGNESS-SAME: "attr2"
17 ; CHECK-INTERESTINGNESS-NEXT: attributes #1 = {
18 ; CHECK-INTERESTINGNESS-SAME: "attr4"
20 ; CHECK-FINAL:  attributes #0 = { "attr0" "attr2" }
21 ; CHECK-FINAL-NEXT:  attributes #1 = { "attr4" }
23 ; CHECK-FINAL-NOT:  attributes #2
25 attributes #0 = { "attr0" "attr1" "attr2"}
26 attributes #1 = { "attr3" "attr4" "attr5"}
27 attributes #2 = { "attr6" "attr7" "attr8"}