brintos

brintos / llvm-project-archived public Read only

0
0
Text · 597 B · bfa516e Raw
23 lines · plain
1; RUN: llvm-reduce --abort-on-invalid-reduction --test FileCheck --test-arg --check-prefixes=CHECK-ALL,CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t2; RUN: cat %t | FileCheck --check-prefixes=CHECK-ALL,CHECK-FINAL %s3; RUN: opt -passes=verify %t4 5; CHECK-FINAL-NOT: = comdat6; CHECK-INTERESTINGNESS: @callee(7; CHECK-FINAL: declare void @callee()8 9$foo = comdat any10 11define void @callee() comdat($foo) {12  ret void13}14 15; CHECK-ALL: define void @caller()16define void @caller() {17entry:18; CHECK-ALL: call void @callee()19; CHECK-ALL: ret void20  call void @callee()21  ret void22}23