comparison test/bug44.d @ 79:875617f89c51 trunk

[svn r83] Fixed: Returning a struct from within the try block of a try-finally was broken.
author lindquist
date Wed, 31 Oct 2007 22:20:19 +0100
parents
children
comparison
equal deleted inserted replaced
78:2332006e1fa4 79:875617f89c51
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 }