~attente/vala/vala-0.20-gio-vapi

« back to all changes in this revision

Viewing changes to tests/methods/bug620673.vala

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2013-04-05 13:45:05 UTC
  • Revision ID: package-import@ubuntu.com-20130405134505-yyk3rec9904i7p8o
Tags: upstream-0.20.1
ImportĀ upstreamĀ versionĀ 0.20.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
void foo (int bar, ...) throws Error {
 
2
        assert (bar == 42);
 
3
        var args = va_list ();
 
4
        int arg = args.arg ();
 
5
        assert (arg == 23);
 
6
}
 
7
 
 
8
void main () {
 
9
        foo (42, 23);
 
10
}