2018-12-19 11:42:19 +08:00
|
|
|
; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashfuncattr -silence-passes
|
2019-05-18 04:42:52 +08:00
|
|
|
; RUN: llvm-dis %t-reduced-simplified.bc -o - | FileCheck -check-prefixes=ALL,ENABLED %s
|
|
|
|
; RUN: bugpoint -disable-attribute-remove -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashfuncattr -silence-passes
|
|
|
|
; RUN: llvm-dis %t-reduced-simplified.bc -o - | FileCheck -check-prefixes=ALL,DISABLED %s
|
|
|
|
|
2019-05-17 14:41:04 +08:00
|
|
|
; REQUIRES: plugins
|
2018-12-19 11:42:19 +08:00
|
|
|
|
2019-05-18 04:42:52 +08:00
|
|
|
; ALL: f() #[[ATTRS:[0-9]+]]
|
2018-12-19 11:42:19 +08:00
|
|
|
define void @f() #0 {
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2019-05-18 04:42:52 +08:00
|
|
|
; ENABLED: attributes #[[ATTRS]] = { "bugpoint-crash" }
|
|
|
|
; DISABLED: attributes #[[ATTRS]] = { noinline "bugpoint-crash" "no-frame-pointer-elim-non-leaf" }
|
|
|
|
attributes #0 = { noinline "bugpoint-crash" "no-frame-pointer-elim-non-leaf" }
|