mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-03-15 00:21:50 +01:00
[svn r83] Fixed: Returning a struct from within the try block of a try-finally was broken.
This commit is contained in:
21
test/bug44.d
Normal file
21
test/bug44.d
Normal file
@@ -0,0 +1,21 @@
|
||||
module bug44;
|
||||
|
||||
pragma(LLVM_internal, "notypeinfo")
|
||||
struct rgb
|
||||
{
|
||||
long l;
|
||||
}
|
||||
|
||||
void foo()
|
||||
{
|
||||
}
|
||||
|
||||
rgb test() {
|
||||
scope(exit) foo();
|
||||
return rgb();
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
rgb r = test();
|
||||
}
|
||||
Reference in New Issue
Block a user