summaryrefslogtreecommitdiff
path: root/test/Feature/testconstants.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-09-30 22:47:06 +0000
committerChris Lattner <sabre@nondot.org>2001-09-30 22:47:06 +0000
commit6b12936ac3513ef6d60ea8ac7fccf89636d172be (patch)
treef993de37c5629d495d4fe4628b4f8cc822c9181b /test/Feature/testconstants.ll
parent1a1cb111fe9081cab4d666338c547253c4a437c9 (diff)
downloadllvm-6b12936ac3513ef6d60ea8ac7fccf89636d172be.tar.gz
llvm-6b12936ac3513ef6d60ea8ac7fccf89636d172be.tar.bz2
llvm-6b12936ac3513ef6d60ea8ac7fccf89636d172be.tar.xz
Add a test for the new null keyword
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@669 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Feature/testconstants.ll')
-rw-r--r--test/Feature/testconstants.ll8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/Feature/testconstants.ll b/test/Feature/testconstants.ll
index 3a0613c7ef..a894c3d2a3 100644
--- a/test/Feature/testconstants.ll
+++ b/test/Feature/testconstants.ll
@@ -10,14 +10,20 @@ begin
ret [[2x int]]* %array
end
-
[sbyte]* "other func"(int, double)
begin
ret [sbyte]* %somestr
end
+[sbyte]* "yet another func"(int, double)
+begin
+ ret [sbyte]* null ; Test null
+end
+
+
[sbyte]* "again"(float)
begin
%cast = cast [11x sbyte]* %somestr to [sbyte]*
ret [sbyte]* %cast
end
+