summaryrefslogtreecommitdiff
path: root/tests/diagnostics/implicit-cast-lvalue.slang
blob: 79b6194430e114a180e509318f06a7faae47c322 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//DIAGNOSTIC_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);
}