• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashfuncattr -silence-passes
2; RUN: llvm-dis %t-reduced-simplified.bc -o - | FileCheck -check-prefixes=ALL,ENABLED %s
3; RUN: bugpoint -disable-attribute-remove -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashfuncattr -silence-passes
4; RUN: llvm-dis %t-reduced-simplified.bc -o - | FileCheck -check-prefixes=ALL,DISABLED %s
5
6; REQUIRES: plugins
7
8; ALL: f() #[[ATTRS:[0-9]+]]
9define void @f() #0 {
10  ret void
11}
12
13; ENABLED: attributes #[[ATTRS]] = { "bugpoint-crash" }
14; DISABLED: attributes #[[ATTRS]] = { noinline "bugpoint-crash" "frame-pointer"="non-leaf" }
15attributes #0 = { noinline "bugpoint-crash" "frame-pointer"="non-leaf" }