annotate 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
rev   line source
lindquist@79 1 module bug44;
lindquist@79 2
lindquist@79 3 pragma(LLVM_internal, "notypeinfo")
lindquist@79 4 struct rgb
lindquist@79 5 {
lindquist@79 6 long l;
lindquist@79 7 }
lindquist@79 8
lindquist@79 9 void foo()
lindquist@79 10 {
lindquist@79 11 }
lindquist@79 12
lindquist@79 13 rgb test() {
lindquist@79 14 scope(exit) foo();
lindquist@79 15 return rgb();
lindquist@79 16 }
lindquist@79 17
lindquist@79 18 void main()
lindquist@79 19 {
lindquist@79 20 rgb r = test();
lindquist@79 21 }