diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-03-10 18:14:09 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-03-10 18:14:09 +0100 |
commit | 371512e6c85a136538869fa684a50bbfdf921f23 (patch) | |
tree | d9e61e71aa0461c88469b191711b38711132d671 | |
parent | a8d1c68c4200a8fc8afafdc498ae780d68a0c4e7 (diff) | |
download | vala-371512e6c85a136538869fa684a50bbfdf921f23.tar.gz |
tests: Extend "struct with delegate" test to increase coverage
-rw-r--r-- | tests/structs/structs.vala | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/structs/structs.vala b/tests/structs/structs.vala index ae4e6f734..dabe021d8 100644 --- a/tests/structs/structs.vala +++ b/tests/structs/structs.vala @@ -29,9 +29,10 @@ struct StructWithNamedCreationMethod { delegate void Func (); struct StructWithFunc { - int foo; + public Func foo; - public StructWithFunc (Func f) { + public StructWithFunc (owned Func f) { + foo = (owned) f; } } |