blob: 55fb76dacf7e3771458297558a99536ad0f74bc8 [file] [log] [blame]
SKIP: FAILED
#include <metal_stdlib>
using namespace metal;
void func(thread int* const pointer) {
pointer = 42;
}
kernel void tint_symbol() {
int F = 0;
func(F);
}
program_source:5:11: error: cannot assign to variable 'pointer' with const-qualified type 'int *const'
pointer = 42;
~~~~~~~ ^
program_source:4:29: note: variable 'pointer' declared const here
void func(thread int* 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 'int' to 'int *const' for 1st argument; take the address of the argument with &
void func(thread int* const pointer) {
^