check for correct usage of the byval attribute
[oota-llvm.git] / test / Verifier / byval-4.ll
diff --git a/test/Verifier/byval-4.ll b/test/Verifier/byval-4.ll
new file mode 100644 (file)
index 0000000..ff733a5
--- /dev/null
@@ -0,0 +1,4 @@
+; RUN: llvm-as < %s -o /dev/null -f
+%struct.foo = type { i64 }
+
+declare void @h(%struct.foo* byval %num)