summaryrefslogtreecommitdiffstats
path: root/llvm/test/BugPoint/func-attrs.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/BugPoint/func-attrs.ll')
-rw-r--r--llvm/test/BugPoint/func-attrs.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/BugPoint/func-attrs.ll b/llvm/test/BugPoint/func-attrs.ll
new file mode 100644
index 00000000000..3941e73c217
--- /dev/null
+++ b/llvm/test/BugPoint/func-attrs.ll
@@ -0,0 +1,11 @@
+; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashfuncattr -silence-passes
+; RUN: llvm-dis %t-reduced-simplified.bc -o - | FileCheck %s
+; REQUIRES: loadable_module
+
+; CHECK: f() #[[ATTRS:[0-9]+]]
+define void @f() #0 {
+ ret void
+}
+
+; CHECK: attributes #[[ATTRS]] = { "bugpoint-crash" }
+attributes #0 = { noinline "bugpoint-crash" "no-frame-pointer-elim-non-leaf" }
OpenPOWER on IntegriCloud