New test cases for bit accurate integers developed by Guoling Han.
[oota-llvm.git] / test / Integer / prototype_bt.ll
diff --git a/test/Integer/prototype_bt.ll b/test/Integer/prototype_bt.ll
new file mode 100644 (file)
index 0000000..c3dc6b2
--- /dev/null
@@ -0,0 +1,14 @@
+; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
+
+implementation
+
+declare i31 "bar"(i31 %in) 
+
+define i31 "foo"(i31 %blah)
+begin
+  %xx = call i31 %bar(i31 %blah)
+  ret i31 %xx
+end
+