blob: 7eab9cbaab5ed85d8918a1d96c44cac7a06d29d0 [file] [log] [blame]
SKIP: FAILED
#include <metal_stdlib>
using namespace metal;
kernel void tint_symbol() {
int i = 123;
thread int* const p = i;
int const u = (p + 1);
}
program_source:6:21: error: cannot initialize a variable of type 'int *const' with an lvalue of type 'int'
thread int* const p = i;
^ ~
program_source:7:13: error: cannot initialize a variable of type 'const int' with an rvalue of type 'int *'
int const u = (p + 1);
^ ~~~~~~~