blob: 7e8701237f35a7b13a9fa5cc9d43e9f345146bfd [file] [log] [blame]
SKIP: FAILED
#include <metal_stdlib>
using namespace metal;
thread float a = 1.0f;
thread float b = 0.0f;
kernel void tint_symbol() {
float const x = (a + b);
}
program_source:4:14: error: program scope variable must reside in constant address space
thread float a = 1.0f;
^
program_source:5:14: error: program scope variable must reside in constant address space
thread float b = 0.0f;
^
program_source:7:15: warning: unused variable 'x' [-Wunused-variable]
float const x = (a + b);
^