comparison tests/mini/bug44.d @ 341:1bb99290e03a trunk

[svn r362] Started merging the old 'test' dir as well as the newer 'tangotests' dir into 'tests/mini' and 'tests/minicomplex'.
author lindquist
date Sun, 13 Jul 2008 02:51:19 +0200
parents test/bug44.d@875617f89c51
children 44f08170f4ef
comparison
equal deleted inserted replaced
340:351c0077d0b3 341:1bb99290e03a
1 module bug44;
2
3 pragma(LLVM_internal, "notypeinfo")
4 struct rgb
5 {
6 long l;
7 }
8
9 void foo()
10 {
11 }
12
13 rgb test() {
14 scope(exit) foo();
15 return rgb();
16 }
17
18 void main()
19 {
20 rgb r = test();
21 }