summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaOpenCL/extern.cl
blob: 5f1f9f80b0faecfe57b323fa4313d293b4d34b24 (plain)
1
2
3
4
5
6
7
8
9
// RUN: %clang_cc1 -x cl -cl-opt-disable -cl-std=CL1.2 -emit-llvm -ffake-address-space-map %s -o - -verify | FileCheck %s
// expected-no-diagnostics

// CHECK: @foo = external addrspace(3) constant float
extern constant float foo;

kernel void test(global float* buf) {
  buf[0] += foo;
}
OpenPOWER on IntegriCloud