blob: b4e02d6aebafef0bbcf9555a1bcb254aa19c1161 [file] [log] [blame]
SKIP: FAILED
#include <metal_stdlib>
using namespace metal;
float4 func(thread float4* const pointer) {
return pointer;
}
kernel void tint_symbol() {
float4 F = 0.0f;
float4 const r = func(F);
}
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);
^~~~
program_source:4:8: note: candidate function not viable: no known conversion from 'float4' (vector of 4 'float' values) to 'float4 *const' for 1st argument; take the address of the argument with &
float4 func(thread float4* const pointer) {
^