summaryrefslogtreecommitdiff
path: root/tests/arrays/inline-struct.vala
blob: a8f05103bde51a1136d50943d43ec608fac3b9dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[CCode (has_type_id = false)]
public struct FooStruct {
	public uint8 i;
	public string s;
}

void main () {
	{
		FooStruct array[2];
		array[0] = { 23, "foo"};
		array[1] = { 42, "bar"};
	}
	{
		GLib.Value array[2];
		array[0].init (typeof (int));
		array[1].init (typeof (string));
	}
}