]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
tests: Improve test for bug 620673
authorJürg Billeter <j@bitron.ch>
Wed, 1 Aug 2012 09:23:23 +0000 (11:23 +0200)
committerJürg Billeter <j@bitron.ch>
Wed, 1 Aug 2012 09:23:23 +0000 (11:23 +0200)
tests/methods/bug620673.vala

index a305a3eb61e3acd88db8106e207775b53310f59a..fd6158b09330ee9e48785d076ce778fd41f6aadf 100644 (file)
@@ -1,5 +1,10 @@
 void foo (int bar, ...) throws Error {
+       assert (bar == 42);
+       var args = va_list ();
+       int arg = args.arg ();
+       assert (arg == 23);
 }
 
 void main () {
-}
\ No newline at end of file
+       foo (42, 23);
+}