summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/input/vala/list.vala
blob: e9b48acc652dd5cbd768dbee11ffd92aa3c6eedb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20


using GLib;

public class GListTest : Object
{
 public GListTest { }

    static int main (string[] args) {
     List<string> list;
            list.append("TestString1");
  list.append("myTest");
        message ("list.length()=%d", list.length());

	for ( int i = 0; i < list.length(); i++) {
                    string list2 = list.nth_data(i);
                    message ("%s", list2);
                }
    }
}