reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
; RUN: opt -strip-dead-prototypes -S -o - < %s | FileCheck %s
; RUN: opt -S -passes=strip-dead-prototypes < %s | FileCheck %s

; CHECK: declare i32 @f
declare i32 @f()
; CHECK-NOT: declare i32 @g
declare i32 @g()

define i32 @foo() {
  %call = call i32 @f()
  ret i32 %call
}