summaryrefslogtreecommitdiff
path: root/tests/parser/verbatim-template.vala
blob: 4a3db1fa5d2862b27df5203f92e105cd0a01be65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
unowned string m () {
	return "foo";
}

void main () {
	string result;
	result = @"""""";
	assert (result == "");

	int i = 42;
	result = @"""i=$i 
m=$(m ()) 
$$""";
	assert (result == "i=42 \nm=foo \n$");
}