blob: 7442043a0f32b53904880bb8bd105dd47c818d42 [file] [log] [blame]
SKIP: FAILED
#include <metal_stdlib>
using namespace metal;
void deref() {
int3 a = 0;
thread int3* const p = a;
p[0] = (p[0] + 42);
}
void no_deref() {
int3 a = 0;
thread int3* const p = a;
p[0] = (p[0] + 42);
}
void deref_inc() {
int3 a = 0;
thread int3* const p = a;
p[0] = (p[0] + 1);
}
void no_deref_inc() {
int3 a = 0;
thread int3* const p = a;
p[0] = (p[0] + 1);
}
kernel void tint_symbol() {
deref();
no_deref();
deref_inc();
no_deref_inc();
}
program_source:6:22: error: cannot initialize a variable of type 'int3 *const' with an lvalue of type 'int3' (vector of 3 'int' values)
thread int3* const p = a;
^ ~
program_source:11:22: error: cannot initialize a variable of type 'int3 *const' with an lvalue of type 'int3' (vector of 3 'int' values)
thread int3* const p = a;
^ ~
program_source:16:22: error: cannot initialize a variable of type 'int3 *const' with an lvalue of type 'int3' (vector of 3 'int' values)
thread int3* const p = a;
^ ~
program_source:21:22: error: cannot initialize a variable of type 'int3 *const' with an lvalue of type 'int3' (vector of 3 'int' values)
thread int3* const p = a;
^ ~