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" }
|
2019-12-25 08:02:47 +08:00
|
|
|
; DISABLED: attributes #[[ATTRS]] = { noinline "bugpoint-crash" "frame-pointer"="non-leaf" }
|
|
|
|
attributes #0 = { noinline "bugpoint-crash" "frame-pointer"="non-leaf" }
|