comparison 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
comparison
equal deleted inserted replaced
1650:40bd4a0d4870 1651:cb960b882ca3
1 // simple test of recursive types.
2 module llvmsample2;
3
4 import llvm.llvm;
5
6 void main()
7 {
8 auto th = new TypeHandle();
9 auto s = StructType.Get([ PointerType.Get(th.resolve) ], false);
10 th.refine(s);
11 s.dump();
12 th.dispose();
13
14 auto t = getTypeOf(s.ll);
15 t.dump();
16
17 assert(s is t);
18 }