summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bitcode/byval-upgrade.test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Bitcode/byval-upgrade.test')
-rw-r--r--llvm/test/Bitcode/byval-upgrade.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/byval-upgrade.test b/llvm/test/Bitcode/byval-upgrade.test
new file mode 100644
index 00000000000..1012bf72883
--- /dev/null
+++ b/llvm/test/Bitcode/byval-upgrade.test
@@ -0,0 +1,7 @@
+RUN: llvm-dis %p/Inputs/byval-upgrade.bc -o - | FileCheck %s
+
+Make sure we upgrade old-stile IntAttribute byval records to a fully typed
+version correctly.
+
+CHECK: call void @bar({ i32*, i8 }* byval({ i32*, i8 }) %ptr)
+CHECK: invoke void @bar({ i32*, i8 }* byval({ i32*, i8 }) %ptr)
OpenPOWER on IntegriCloud