1*67e74705SXin Li// RUN: %clang_cc1 -x cl -cl-opt-disable -cl-std=CL1.2 -emit-llvm -ffake-address-space-map %s -o - -verify | FileCheck %s 2*67e74705SXin Li// expected-no-diagnostics 3*67e74705SXin Li 4*67e74705SXin Li// CHECK: @foo = external addrspace(3) constant float 5*67e74705SXin Liextern constant float foo; 6*67e74705SXin Li 7*67e74705SXin Likernel void test(global float* buf) { 8*67e74705SXin Li buf[0] += foo; 9*67e74705SXin Li} 10