blob: 9d134299c824bf0c922b4debd5da6a9a570bc99f [file] [log] [blame]
SKIP: FAILED
#include <metal_stdlib>
using namespace metal;
void func(thread float4* const pointer) {
pointer = float4(0.0f);
}
kernel void tint_symbol() {
float4 F = 0.0f;
func(F);
}
program_source:5:11: error: cannot assign to variable 'pointer' with const-qualified type 'float4 *const'
pointer = float4(0.0f);
~~~~~~~ ^
program_source:4:32: note: variable 'pointer' declared const here
void func(thread float4* const pointer) {
~~~~~~~~~~~~~~~~~~~~~^~~~~~~
program_source:9:3: error: no matching function for call to 'func'
func(F);
^~~~
program_source:4:6: 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 &
void func(thread float4* const pointer) {
^