Mercurial > projects > ldc
diff tools/binding/llvmsample2.d @ 1651:cb960b882ca3 default tip
bindings were moved to dsource.org/projects/bindings/
author | Moritz Warning <moritzwarning@web.de> |
---|---|
date | Thu, 20 May 2010 20:05:03 +0200 |
parents | 40bd4a0d4870 |
children |
line wrap: on
line diff
--- a/tools/binding/llvmsample2.d Wed May 19 12:42:32 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,18 +0,0 @@ -// simple test of recursive types. -module llvmsample2; - -import llvm.llvm; - -void main() -{ - auto th = new TypeHandle(); - auto s = StructType.Get([ PointerType.Get(th.resolve) ], false); - th.refine(s); - s.dump(); - th.dispose(); - - auto t = getTypeOf(s.ll); - t.dump(); - - assert(s is t); -}