blob: fdb732b54f6e4db5b6fa956b71f32f65413fd0a5 [file] [log] [blame]
SKIP: FAILED
#include <metal_stdlib>
using namespace metal;
float4 func(thread float4* const pointer) {
return pointer;
}
kernel void tint_symbol() {
float2x4 F = float2x4(0.0f);
float4 const r = func(F[1]);
}
program_source:5:10: error: cannot initialize return object of type 'float4' (vector of 4 'float' values) with an lvalue of type 'float4 *const'
return pointer;
^~~~~~~
program_source:9:20: error: no matching function for call to 'func'
float4 const r = func(F[1]);
^~~~
program_source:4:8: note: candidate function not viable: no known conversion from 'vec<float, 4>' (vector of 4 'float' values) to 'float4 *const' for 1st argument; take the address of the argument with &
float4 func(thread float4* const pointer) {
^