[llvm-commits] [llvm] r61449 - /llvm/trunk/test/Feature/testtype.ll

Chris Lattner sabre at nondot.org
Sat Dec 27 00:10:47 PST 2008


Author: lattner
Date: Sat Dec 27 02:10:46 2008
New Revision: 61449

URL: http://llvm.org/viewvc/llvm-project?rev=61449&view=rev
Log:
add testcase for type parsing.

Added:
    llvm/trunk/test/Feature/testtype.ll

Added: llvm/trunk/test/Feature/testtype.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Feature/testtype.ll?rev=61449&view=auto

==============================================================================
--- llvm/trunk/test/Feature/testtype.ll (added)
+++ llvm/trunk/test/Feature/testtype.ll Sat Dec 27 02:10:46 2008
@@ -0,0 +1,21 @@
+; RUN: llvm-as < %s | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
+
+%X = type i32* addrspace(4)*
+
+        %inners = type { float, { i8 } }
+        %struct = type { i32, %inners, i64 }
+
+%fwdref = type { %fwd* }
+%fwd    = type %fwdref*
+
+; same as above with unnamed types
+type { %1* }
+type %0* 
+%test = type %1
+
+%test2 = type [2 x i32]
+;%x = type %undefined*
+
+%test3 = type i32 (i32()*, float(...)*, ...)*





More information about the llvm-commits mailing list