aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/FunctionAttrs/operand-bundles-scc.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/FunctionAttrs/operand-bundles-scc.ll')
-rw-r--r--test/Transforms/FunctionAttrs/operand-bundles-scc.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Transforms/FunctionAttrs/operand-bundles-scc.ll b/test/Transforms/FunctionAttrs/operand-bundles-scc.ll
new file mode 100644
index 000000000000..2502ea719cab
--- /dev/null
+++ b/test/Transforms/FunctionAttrs/operand-bundles-scc.ll
@@ -0,0 +1,13 @@
+; RUN: opt -S -functionattrs < %s | FileCheck %s
+
+define void @f() {
+; CHECK-LABEL: define void @f() {
+ call void @g() [ "unknown"() ]
+ ret void
+}
+
+define void @g() {
+; CHECK-LABEL: define void @g() {
+ call void @f()
+ ret void
+}