]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGenOpenCL/constant-addr-space-globals.cl
Vendor import of clang release_38 branch r258549:
[FreeBSD/FreeBSD.git] / test / CodeGenOpenCL / constant-addr-space-globals.cl
1 // RUN: %clang_cc1 %s -ffake-address-space-map -emit-llvm -o - | FileCheck %s
2
3 // CHECK: @array = addrspace({{[0-9]+}}) constant
4 __constant float array[2] = {0.0f, 1.0f};
5
6 kernel void test(global float *out) {
7   *out = array[0];
8 }