codegen: Fix floating reference regression with Variants
[vala-gnome.git] / tests / delegates / bug595610.vala
blob2882a64b8b7ead5c1d0f0a1f96265afc3f8d9179
1 struct Foo {
2 int bar;
5 delegate Foo Func ();
7 Foo do_foo () {
8 return Foo ();
11 void main () {
12 Func func = do_foo;
13 func ();