summaryrefslogtreecommitdiffstats
path: root/tests/diagnostics/implicit-cast-lvalue.slang
blob: daf19637878add9b0d9dfb444a7b5f2b8126daa4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//DIAGNOSTIC_TEST:SIMPLE:


// Generally speaking:
// Passing an argument for an `out` parameter such
// that implicit conversion would be required in
// both directions.
//
// But we do have special case code to handle uint/int of the same type and scalar/vector/matrix forms. 
// So for this to fail we need to use floats or something else

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

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