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