]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/SemaOpenCL/extern.cl
Vendor import of clang trunk r290819:
[FreeBSD/FreeBSD.git] / test / SemaOpenCL / extern.cl
1 // RUN: %clang_cc1 -x cl -cl-opt-disable -cl-std=CL1.2 -emit-llvm -ffake-address-space-map %s -o - -verify | FileCheck %s
2 // expected-no-diagnostics
3
4 // CHECK: @foo = external addrspace(2) constant float
5 extern constant float foo;
6
7 kernel void test(global float* buf) {
8   buf[0] += foo;
9 }