summaryrefslogtreecommitdiff
path: root/tests/diagnostics/implicit-cast-lvalue.slang
blob: 4bf3c13b040e71974cb570af844604a4b24b81a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//TEST:SIMPLE:

// Passing an argument for an `out` parameter such
// that implicit conversion would be required in
// both directions.

void a(out uint x)
{
	x = 0;
}

void b(int y)
{
	a(y);
}